Methods
byteList (int length )
→ List <int >
Returns a list of random bytes with a given length
.
maskFactor (int factor )
→ int
Removes the most significant bits from an multiply operand.
Needed on restricted arithmetic.
maskOperand (int operand )
→ int
Removes the most significant bits from an addition operand.
Needed on restricted arithmetic.
next ()
→ int
Calculates the next seed.
nextDouble ()
→ double
Returns a random double with 0 <= rc < 1.
nextInt ({int max = MaxInt , int min = 0 })
→ int
Returns a random integer with 0 <= rc < max
.
nextString (int length , [CharClass charClass = CharClass.chars96 , String ? charList ])
→ String
Returns a random string with a given length
.
charClass
: defines the characters of the result.
charList
is null or a string with all allowed characters.
@throws FormatException if charClass
is custom and charList
is null.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset ()
→ void
Sets the state to a well known state: the start state or the state of the
last call of setStart()
restoreState (List <int > list )
→ void
saveState ()
→ List <int >
setResetState ()
→ void
Sets the state used in reset().
Must be called in the constructor of each overloading class.
setSeed (String passphrase )
→ void
toString ()
→ String
A string representation of this object.
inherited