Uses of Class
it.unich.jgmp.RandState
Packages that use RandState
-
Uses of RandState in it.unich.jgmp
Methods in it.unich.jgmp that return RandStateModifier and TypeMethodDescriptionstatic 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.randinitSet
(RandState op) Returns a random state which is a copy ofop
.Sets an initial seed value into this.RandState.randseedUi
(long seed) Sets an initial seed value into this.Methods in it.unich.jgmp with parameters of type RandStateModifier and TypeMethodDescriptionRandState.randinitSet
(RandState op) Returns a random state which is a copy ofop
.static MPZ
Return anMPZ
whose value is a random integer with long strings of zeros and ones in the binary representation.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
Return anMPF
whose value is an uniformly distributed random float in the range from0
included to1
excluded.static MPZ
Return anMPZ
whose value is an uniformly distributed random integer in the range0
} to(2n - 1)
, inclusive.MPF.urandombAssign
(RandState s, long nbits) Set thisMPF
to a uniformly distributed random float in the range from0
included to1
excluded.MPZ.urandombAssign
(RandState s, long n) Set thisMPZ
to a uniformly distributed random integer in the range0
to(2n - 1)
, inclusive.static MPZ
Return anMPZ
whose value is an uniformly distributed random integer in the range0
to(n - 1)
, inclusive.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