Packages

object Rand

RNG state transition functions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Rand
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit final class RandOps[A] extends AnyVal

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def flatten[A](rand: Rand[Rand[A]]): Rand[A]

    Flattens a nested Rand context.

    Flattens a nested Rand context.

    A

    The data produced by the context.

    rand

    The nested context.

    returns

    The flattened context.

  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def next(numBits: Int): Rand[Long]

    Gets numBits from the next Long value produced by the RNG.

    Gets numBits from the next Long value produced by the RNG.

    numBits

    The number of bits to return.

    returns

    A Rand producing numBits from the next value.

  14. def nextAsciiChar(): Rand[Char]

    Gets the next ASCII Char value produced by the RNG.

    Gets the next ASCII Char value produced by the RNG.

    returns

    A Rand producing the next ASCII Char value.

  15. def nextAsciiString(length: Int): Rand[String]

    Gets a String of ASCII characters produced by the RNG.

    Gets a String of ASCII characters produced by the RNG.

    length

    The length of the String to generate.

    returns

    A Rand producing a String of the given length.

  16. def nextBoolean(): Rand[Boolean]

    Gets the next Boolean value produced by the RNG.

    Gets the next Boolean value produced by the RNG.

    returns

    A Rand producing the next Boolean value.

  17. def nextChar(): Rand[Char]

    Gets the next Char value produced by the RNG.

    Gets the next Char value produced by the RNG.

    returns

    A Rand producing the next Char value.

  18. def nextDouble(bound: Double = 1.0): Rand[Double]

    Gets the next Double value between 0 and bound produced by the RNG.

    Gets the next Double value between 0 and bound produced by the RNG.

    bound

    The maximum limit of the Double value.

    returns

    A Rand producing the next Double value.

  19. def nextIdChar(): Rand[Char]

    Gets the next Java identifier Char value produced by the RNG.

    Gets the next Java identifier Char value produced by the RNG.

    returns

    A Rand producing the next Char value.

  20. def nextIdString(length: Int): Rand[String]

    Gets a String of Java identifier characters produced by the RNG.

    Gets a String of Java identifier characters produced by the RNG.

    length

    The length of the String to generate.

    returns

    A Rand producing a String of the given length.

  21. def nextInt(bound: Int = Int.MaxValue): Rand[Int]

    Gets the next Int value between 0 and bound produced by the RNG.

    Gets the next Int value between 0 and bound produced by the RNG.

    bound

    The maximum limit of the Int value.

    returns

    A Rand producing the next Int value.

  22. def nextLong(bound: Long = Long.MaxValue): Rand[Long]

    Gets the next Long value between 0 and bound produced by the RNG.

    Gets the next Long value between 0 and bound produced by the RNG.

    bound

    The maximum limit of the Long value.

    returns

    A Rand producing the next Long value.

  23. def nextPrintableChar(): Rand[Char]

    Gets the next printable Char value produced by the RNG.

    Gets the next printable Char value produced by the RNG.

    returns

    A Rand producing the next Char value.

  24. def nextPrintableString(length: Int): Rand[String]

    Gets a String of printable characters produced by the RNG.

    Gets a String of printable characters produced by the RNG.

    length

    The length of the String to generate.

    returns

    A Rand producing a String of the given length.

  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def pure[A](value: A): Rand[A]

    Lift a pure value into the Rand context.

    Lift a pure value into the Rand context.

    value

    The value to lift.

    returns

    A Rand generator that returns the value and given RNG.

  28. def repeat[A](count: Int)(rand: Rand[A]): Rand[List[A]]

    Repeats a Rand count times to generate a List of count randomly generated values.

    Repeats a Rand count times to generate a List of count randomly generated values.

    A

    The data produced by the rand.

    count

    The number of times to repeat the rand.

    rand

    The Rand to repeat.

    returns

    A Rand producing a list of count values.

  29. def sequence[A](listOfRand: List[Rand[A]]): Rand[List[A]]

    Sequences a List of Rand's into a Rand producing a List of random values.

    Sequences a List of Rand's into a Rand producing a List of random values.

    A

    The data produced by the Rand.

    listOfRand

    The List of Rand's.

    returns

    A Rand producing a List of generated values.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped