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 RandStateRandState.randinitDefault()Returns the default random state.static RandStateRandState.randinitLc2Exp(MPZ a, long c, long m2exp) Returns a random state for a linear congruential algorithm.static RandStateRandState.randinitLc2ExpSize(long size) Returns a random state for a linear congruential algorithm.static RandStateRandState.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 MPZReturn anMPZwhose value is a random integer with long strings of zeros and ones in the binary representation.MPZ.rrandombAssign(RandState s, long n) Set thisMPZto a random integer with long strings of zeros and ones in the binary representation.static MPFReturn anMPFwhose value is an uniformly distributed random float in the range from0included to1excluded.static MPZReturn anMPZwhose value is an uniformly distributed random integer in the range0} to(2n - 1), inclusive.MPF.urandombAssign(RandState s, long nbits) Set thisMPFto a uniformly distributed random float in the range from0included to1excluded.MPZ.urandombAssign(RandState s, long n) Set thisMPZto a uniformly distributed random integer in the range0to(2n - 1), inclusive.static MPZReturn anMPZwhose value is an uniformly distributed random integer in the range0to(n - 1), inclusive.MPZ.urandommAssign(RandState s, MPZ n) Set thisMPZto a uniformly distributed random integer in the range0to(n - 1), inclusive.Constructors in it.unich.jgmp with parameters of type RandState