Seed

object Seed
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def apply(init: Long): Seed
def nextInt(max: Int): State[Seed, Int]
def weightedBoolean(percentile: Double): State[Seed, Boolean]
Value Params
percentile

a value between 0.0 and 1.0. e.g. 0.25 should return true roughly 25% of the time

Returns

a boolean with the given percentage (between 0 and 1.0) of returning true

Concrete fields

val nextBoolean: State[Seed, Boolean]
val nextDouble: State[Seed, Double]

a state which returns a double between 0.0 and 1.0

a state which returns a double between 0.0 and 1.0

val nextLong: State[Seed, Long]