RandomSource
RandomSource = (() =>
number) | {nextInt(bound):number; }
Defined in: src/Collections.ts:87
Random source for shuffle: a function returning a number in [0, 1) (like Math.random), or a generator with nextInt(bound) in [0, bound).
Union Members
Section titled “Union Members”Function
Section titled “Function”() => number
Type Literal
Section titled “Type Literal”{ nextInt(bound): number; }
nextInt()
Section titled “nextInt()”nextInt(
bound):number
Returns a uniformly distributed integer in [0, bound).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”number