Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/iam_policies/src/utils/mersenneTwister.ts>MersenneTwister

Iam policies implementation for create roles and manage permissions
Latest
class MersenneTwister
import { MersenneTwister } from "https://deno.land/x/iam_policies@v4.17.0/src/utils/mersenneTwister.ts";

Constructors

new
MersenneTwister(seed?: number | number[])

Properties

private
readonly
LOWER_MASK: number
private
readonly
M: number
private
readonly
MATRIX_A: number
private
readonly
mt: number[]
private
mti: number
private
readonly
N: number
private
readonly
UPPER_MASK: number

Methods

initByArray(initKey: number[], keyLength: number): void
initSeed(seed: number): void
randomInt31(): number
randomInt32(): number
randomReal1(): number
randomReal2(): number
randomReal3(): number
randomRes53(): number