sealed abstract class Seed extends Serializable
Simple RNG by Bob Jenkins:
http://burtleburtle.net/bob/rand/smallprng.html
- Alphabetic
- By Inheritance
- Seed
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
double: (Double, Seed)
Generates a Double value.
Generates a Double value.
The values will be uniformly distributed, and will be contained in the interval [0.0, 1.0).
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
long: (Long, Seed)
Generates a Long value.
Generates a Long value.
The values will be uniformly distributed.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
next: Seed
Generate the next seed in the RNG's sequence.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
reseed(n: Long): Seed
Reseed the RNG using the given Long value.
-
def
slide: Seed
This is a quick way of deterministically sliding this RNG to a different part of the PRNG sequence.
This is a quick way of deterministically sliding this RNG to a different part of the PRNG sequence.
We use this as an easy way to "split" the RNG off into a new part of the sequence. We want to do this in situations where we've already called .next several times, and we want to avoid repeating those numbers while preserving determinism.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBase64: String
Generate a Base-64 representation of this seed.
Generate a Base-64 representation of this seed.
Given a seed, this method will return a String with 44 characters, according to the web-safe Base-64 specification (i.e. using minus (-) and underscore (_) in addition to alphanumeric characters).
The 256-bit seed is serialized as a little-endian array of 64-bit Long values. Strings produced by this method are guaranteed to be parseable by the Seed.fromBase64 method.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )