com.phasmidsoftware.lascala.random

Members list

Type members

Classlikes

case class JavaRandomState[T](n: Long, g: Long => T) extends RandomState[T]

A concrete implementation of RandomState based on the Java random number generator

A concrete implementation of RandomState based on the Java random number generator

Type parameters

T

the underlying type of this random state, i.e. the type of the result of calling get

Value parameters

g

the function which maps a Long value into a T

n

the random Long that characterizes this random state

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait RandomState[T]
class Object
trait Matchable
class Any
Show all
object RandomState

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait RandomState[T]

Monadic trait which defines a random-state.

Monadic trait which defines a random-state.

Created by scalaprof on 9/24/16.

Type parameters

T

the underlying type of this random state, i.e. the type of the result of calling get

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JavaRandomState[T]
case class UniformDouble(x: Double)

This is essentially a wrapper of Double where (implicitly) 0 <= x <= 1. Note that we would like to specify it as a Value type but require statements are not legal in Value types

This is essentially a wrapper of Double where (implicitly) 0 <= x <= 1. Note that we would like to specify it as a Value type but require statements are not legal in Value types

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type