class
RandomGenerator extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
bernoulli(p: Double): Boolean
-
def
cauchy(median: Double, sigma: Double): Double
-
-
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
exponential(lambda: Double): Double
-
def
finalize(): Unit
-
def
geometric(p: Double): Int
-
final
def
getClass(): Class[_]
-
def
getSeed(): Long
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
logNormal(mean: Double, stdv: Double): Double
-
final
def
ne(arg0: AnyRef): Boolean
-
def
normal(mean: Double, stdv: Double): Double
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
setSeed(seed: Long): RandomGenerator.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
def
uniform(a: Double, b: Double): Double
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
A mersenne twister based fake random number generator. Please refer https://en.wikipedia.org/wiki/Mersenne_Twister. Note that it has its own state so it is not thread safe. So you should use RandomGenerator.RNG to get a thread local instance to use. That's thread-safe.