ReadonlyincrementReadonlymodulusReadonlymultiplierGet the current generator state for deterministic restoration.
Generate the next integer in the range (0, this.modulus) non-inclusive, updating rand_state.
Postcondition: pass checkRandState(), i.e. rand_state > 0 and is an integer.
Generates random float between (0, 1) non-inclusive, updating rand_state.
Postcondition: pass checkRandState(), i.e. rand_state > 0 and is an integer.
Sets rand_state after normalized with modulus to ensure that it is within range.
Any integer. Used to set rand_state after normalized with modulus.
Postcondition: pass checkRandState(), i.e. rand_state > 0 and is an integer.
Restore a state returned by getState().
Set modulus, multiplier, and increment. Initialize
rand_stateaccording toDate.now().