object Random
- Source
- random.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Random
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def always[A](in: A): Random[A]
Create a
Randomthat always generates the given value. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def discrete[A](elts: (A, Double)*): Random[A]
- def double: Random[Double]
Create a
Randomthat generates aDoubleuniformly distributed between 0.0 and 1.0. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def int(lower: Int, upper: Int): Random[Int]
Create a
Randomthat generates anIntuniformly distributed in the range greater than or equal tolowerand less thanupper. - def int: Random[Int]
Create a
Randomthat generates anIntuniformly distributed across the entire range. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def natural(upperLimit: Int): Random[Int]
Create a
Randomthat generates anIntuniformly distributed in the range greater than or equal to zero and less thanupper. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normal(mean: Double, stdDev: Double): Random[Double]
- def normal: Random[Double]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def oneOf[A](elts: A*): Random[A]
Create a
Randomthat generates one of the provided values with uniform distribution. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()