Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.irandomnumbergenerator.generate

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > IRandomNumberGenerator > generate

IRandomNumberGenerator.generate() method

Returns a pseudorandom number between 0 (inclusive) and 1 (exclusive), following the contract of Math.random().

Signature:

generate(): number;

Returns:

number

Clone this wiki locally