Uses of Class
it.unich.jgmp.RandState
-
Packages that use RandState Package Description it.unich.jgmp This package contains all the high-level classes of JGMP. -
-
Uses of RandState in it.unich.jgmp
Methods in it.unich.jgmp that return RandState Modifier and Type Method Description static RandState
RandState. randinitDefault()
Returns the default random state.static RandState
RandState. randinitLc2Exp(MPZ a, long c, long m2exp)
Returns a random state for a linear congruential algorithm.static RandState
RandState. randinitLc2ExpSize(long size)
Returns a random state for a linear congruential algorithm.static RandState
RandState. randinitMt()
Returns a random state for a Mersenne Twister algorithm.RandState
RandState. randinitSet(RandState op)
Returns a random state which is a copy ofop
.RandState
RandState. randseed(MPZ seed)
Sets an initial seed value into this.RandState
RandState. randseedUi(long seed)
Sets an initial seed value into this.Methods in it.unich.jgmp with parameters of type RandState Modifier and Type Method Description RandState
RandState. randinitSet(RandState op)
Returns a random state which is a copy ofop
.static MPZ
MPZ. rrandomb(RandState s, long n)
Return anMPZ
whose value is a random integer with long strings of zeros and ones in the binary representation.MPZ
MPZ. rrandombAssign(RandState s, long n)
Set thisMPZ
to a random integer with long strings of zeros and ones in the binary representation.static MPF
MPF. urandomb(RandState s, long nbits)
Return anMPF
whose value is an uniformly distributed random float in the range from0
included to1
excluded.static MPZ
MPZ. urandomb(RandState s, long n)
Return anMPZ
whose value is an uniformly distributed random integer in the range0
} to(2n - 1)
, inclusive.MPF
MPF. urandombAssign(RandState s, long nbits)
Set thisMPF
to a uniformly distributed random float in the range from0
included to1
excluded.MPZ
MPZ. urandombAssign(RandState s, long n)
Set thisMPZ
to a uniformly distributed random integer in the range0
to(2n - 1)
, inclusive.static MPZ
MPZ. urandomm(RandState s, MPZ n)
Return anMPZ
whose value is an uniformly distributed random integer in the range0
to(n - 1)
, inclusive.MPZ
MPZ. urandommAssign(RandState s, MPZ n)
Set thisMPZ
to a uniformly distributed random integer in the range0
to(n - 1)
, inclusive.Constructors in it.unich.jgmp with parameters of type RandState Constructor Description RandState(RandState state)
Builds a copy of the specified random state.
-