RNG

com.phasmidsoftware.lascala.RNG
See theRNG companion object
trait RNG[+A] extends () => A

Very primitive implementation of a state-based random number generator

CONSIDER reworking this entire package, particularly using map instead of defining things like DoubleRNG.

CONSIDER having RNG extend FilterMonadic or at least implement flatMap

Type parameters

A

the underlying type of this Random Number Generator

Attributes

Companion
object
Graph
Supertypes
trait () => A
class Object
trait Matchable
class Any
Known subtypes
class RNG_Java[A]
class DoubleRNG
class GaussianRNG
class LongRNG

Members list

Value members

Abstract methods

def map[B](f: A => B): RNG[B]
def next: RNG[A]

Inherited methods

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function0 -> Any
Inherited from:
Function0

Inherited and Abstract methods

def apply(): A

Applies the body of this function to the arguments.

Applies the body of this function to the arguments.

Attributes

Returns

the result of function application.

Inherited from:
Function0