Interface RotRngInterface
Methods
getItem
- getItem<T>(array): null | T
Returns null | T
getNormal
- getNormal(mean?, stddev?): number
Parameters
Optional
mean: numberOptional
stddev: number
Returns number
getPercentage
- getPercentage(): number
Returns number
getSeed
- getSeed(): number
Returns number
getUniform
- getUniform(): number
Returns number
getUniformInt
- getUniformInt(lowerBound, upperBound): number
Parameters
- lowerBound: number
- upperBound: number
Returns number
getWeightedValue
- getWeightedValue(data): string | number
Parameters
- data: {
[key: string]: number;
[key: number]: number;
}[key: string]: number
[key: number]: number
Returns string | number
setSeed
- setSeed(state): this
Returns this
setState
- setState(state): this
Returns this
shuffle
- shuffle<T>(array): T[]
Returns T[]