Packages

case class Rand(seed: Long = scala.util.Random.nextLong()) extends Product with Serializable

Source
rand.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rand
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
Implicitly
  1. by richDrxAny
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Rand(seed: Long = scala.util.Random.nextLong())

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Rand toany2stringadd[Rand] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. 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
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply[A](xs: IndexedSeq[A]): A
  7. def apply(rat: Ratio): Boolean

    if( rand(1 outOf 100) )

  8. 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
  9. 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
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def bool: Boolean
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. def double: Double
  14. 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
  15. def ensuring(cond: (Rand) => Boolean, msg: => Any): Rand
    Implicit
    This member is added by an implicit conversion from Rand toEnsuring[Rand] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (Rand) => Boolean): Rand
    Implicit
    This member is added by an implicit conversion from Rand toEnsuring[Rand] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: => Any): Rand
    Implicit
    This member is added by an implicit conversion from Rand toEnsuring[Rand] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): Rand
    Implicit
    This member is added by an implicit conversion from Rand toEnsuring[Rand] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Rand toStringFormat[Rand] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. def get[A](xs: IndexedSeq[A]): Option[A]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def int: Int
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def iterate[A](xs: IndexedSeq[A]): Iterator[A]
  27. def long: Long
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def noise(v: Vec, w: Double): Double
  30. def noise(v: Vec): Double
  31. def noise(x: Double, y: Double, z: Double, w: Double): Double
  32. def noise(x: Double, y: Double, z: Double): Double
  33. def noise(x: Double, y: Double): Double
  34. 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
  35. def normal(m: Double, s: Double): Double
  36. def normal(m: Double): Double
  37. def normal: Double
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. 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
  41. 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
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. val seed: Long
  44. def shuffle[A](xs: Iterable[A]): Iterable[A]
  45. 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
  46. 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
  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. 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
  49. def uniform(a: Int, b: Int): Int
  50. def uniform(a: Int): Int
  51. def uniform(a: Double): Double
  52. def uniform: Double
  53. def uniform(a: Double, b: Double): Double
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. 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

  2. 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)

  3. 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.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromRand to DrxAny[Rand]

Inherited by implicit conversion any2stringadd fromRand to any2stringadd[Rand]

Inherited by implicit conversion StringFormat fromRand to StringFormat[Rand]

Inherited by implicit conversion Ensuring fromRand to Ensuring[Rand]

Inherited by implicit conversion ArrowAssoc fromRand to ArrowAssoc[Rand]

Ungrouped