case class Rand(seed: Long = scala.util.Random.nextLong()) extends Product with Serializable
- Source
- rand.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Rand
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by richDrxAny
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- 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
- def +(other: String): String
- def ->[B](y: B): (Rand, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](xs: IndexedSeq[A]): A
- def apply(rat: Ratio): Boolean
if( rand(1 outOf 100) )
- def applyIf(t: Boolean, f: (Rand) => Rand): Rand
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Rand) => Boolean)(f: (Rand) => Rand): Rand
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bool: Boolean
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def double: Double
- def elementOf(xs: Set[Rand]): Boolean
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Rand) => Boolean, msg: => Any): Rand
- def ensuring(cond: (Rand) => Boolean): Rand
- def ensuring(cond: Boolean, msg: => Any): Rand
- def ensuring(cond: Boolean): Rand
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- def get[A](xs: IndexedSeq[A]): Option[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def int: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterate[A](xs: IndexedSeq[A]): Iterator[A]
- def long: Long
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noise(v: Vec, w: Double): Double
- def noise(v: Vec): Double
- def noise(x: Double, y: Double, z: Double, w: Double): Double
- def noise(x: Double, y: Double, z: Double): Double
- def noise(x: Double, y: Double): Double
- def noneIf(f: (Rand) => Boolean): Option[Rand]
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def normal(m: Double, s: Double): Double
- def normal(m: Double): Double
- def normal: Double
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Rand) => Boolean): Option[Rand]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Rand) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val seed: Long
- def shuffle[A](xs: Iterable[A]): Iterable[A]
- def sideEffect(f: (Rand) => Unit): Rand
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Rand) => Boolean): Option[Rand]
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val thisAny: Rand
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def uniform(a: Int, b: Int): Int
- def uniform(a: Int): Int
- def uniform(a: Double): Double
- def uniform: Double
- def uniform(a: Double, b: Double): Double
- 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()
Deprecated Value Members
- def ?>(f: (Rand) => Boolean): Option[Rand]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (Rand) => B): B
- Implicit
- This member is added by an implicit conversion from Rand toDrxAny[Rand] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Rand, B)
- Implicit
- This member is added by an implicit conversion from Rand toArrowAssoc[Rand] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.