XorShift64Star

class XorShift64Star(var seed: Long) extends LongBasedGenerator
Companion:
object
class Generator
class Object
trait Matchable
class Any

Value members

Concrete methods

override def getSeedBytes: Array[Byte]
Definition Classes
def nextLong(): Long
def setSeedBytes(bytes: Array[Byte]): Unit

Inherited methods

def chooseFromArray[@specialized A](arr: Array[A])(implicit gen: Generator): A
Inherited from:
Generator
def chooseFromIterable[A](as: Iterable[A])(implicit gen: Generator): A
Inherited from:
Generator
def chooseFromSeq[A](seq: Seq[A])(implicit gen: Generator): A
Inherited from:
Generator
Inherited from:
Generator

Fill an Array[A] using the given Dist[A] instance.

Fill an Array[A] using the given Dist[A] instance.

Inherited from:
Generator
override def fillBytes(arr: Array[Byte]): Unit
Definition Classes
Inherited from:
LongBasedGenerator
def fillGaussians(arr: Array[Double], mean: Double, stddev: Double): Unit
Inherited from:
Generator
Inherited from:
Generator
override def fillInts(arr: Array[Int]): Unit
Definition Classes
Inherited from:
LongBasedGenerator
def fillLongs(arr: Array[Long]): Unit

Fill an array with random Longs.

Fill an array with random Longs.

Inherited from:
Generator
override def fillShorts(arr: Array[Short]): Unit
Definition Classes
Inherited from:
LongBasedGenerator

Generate an Array[A] using the given Dist[A] instance.

Generate an Array[A] using the given Dist[A] instance.

Inherited from:
Generator

Generate an array of n random Bytes.

Generate an array of n random Bytes.

Inherited from:
Generator
def generateGaussians(n: Int, mean: Double, stddev: Double): Array[Double]
Inherited from:
Generator
Inherited from:
Generator

Generate an array of n random Ints.

Generate an array of n random Ints.

Inherited from:
Generator

Generate an array of n random Longs.

Generate an array of n random Longs.

Inherited from:
Generator

Generate an array of n random Shorts.

Generate an array of n random Shorts.

Inherited from:
Generator
def iterator[A](implicit next: Dist[A]): Iterator[A]

Generate an infinite iterator of random values using Dist[A].

Generate an infinite iterator of random values using Dist[A].

Inherited from:
Generator
def next[A](implicit next: Dist[A]): A

Generate a random value using a Dist[A] type class instance.

Generate a random value using a Dist[A] type class instance.

Implicit Dist[A] instances are provided for the AnyVal types as well as UByte through ULong. More complex Dist instances can be created from these.

Inherited from:
Generator
def nextBits(n: Int): Int

Generates a random integer using n bits of state (0 <= n <= 32).

Generates a random integer using n bits of state (0 <= n <= 32).

Inherited from:
Generator

Generates a random Boolean.

Generates a random Boolean.

Inherited from:
Generator
def nextDouble(from: Double, until: Double): Double

Generates a random double in [from, until).

Generates a random double in [from, until).

Inherited from:
Generator

Generates a random double in [0.0, n).

Generates a random double in [0.0, n).

Inherited from:
Generator

Generates a random double in [0.0, 1.0).

Generates a random double in [0.0, 1.0).

Inherited from:
Generator
def nextFloat(from: Float, until: Float): Float

Generates a random float in [from, until).

Generates a random float in [from, until).

Inherited from:
Generator

Generates a random float in [0.0, n).

Generates a random float in [0.0, n).

Inherited from:
Generator

Generates a random float in [0.0, 1.0).

Generates a random float in [0.0, 1.0).

Inherited from:
Generator
def nextGaussian(mean: Double, stddev: Double): Double
Inherited from:
Generator
Inherited from:
Generator
def nextInt(): Int
Inherited from:
LongBasedGenerator
def nextInt(from: Int, to: Int): Int

Return an Int in [from, to].

Return an Int in [from, to].

Inherited from:
Generator
def nextInt(n: Int): Int

Generates a random int between 0 (inclusive) and n (exclusive).

Generates a random int between 0 (inclusive) and n (exclusive).

Inherited from:
>>(1).toLong).>>>(31).toIntelseloop(Generator.this.nextInt().>>>(1)) }">Generator
def nextLong(from: Long, to: Long): Long

Return an Long in [from, to].

Return an Long in [from, to].

Inherited from:
Generator
def nextLong(n: Long): Long

Generates a random int between 0 (inclusive) and n (exclusive).

Generates a random int between 0 (inclusive) and n (exclusive).

Inherited from:
>>(1)) }">Generator
def oneOf[A](as: A*): A
Inherited from:
Generator
def sampleFromArray[@specialized A : ClassTag](as: Array[A], size: Int)(implicit evidence$4: ClassTag[A], gen: Generator): Array[A]
Inherited from:
Generator
def sampleFromIterable[@specialized A : ClassTag](as: Iterable[A], size: Int)(implicit evidence$5: ClassTag[A], gen: Generator): Array[A]
Inherited from:
Generator
def shuffle[@specialized A](as: Array[A])(implicit gen: Generator): Unit
Inherited from:
Generator
Inherited from:
Generator

Deprecated and Inherited methods

@deprecated("use sampleFromIterable instead", since = "0.18.0")
def sampleFromTraversable[@specialized A : ClassTag](as: Iterable[A], size: Int)(implicit evidence$6: ClassTag[A], gen: Generator): Array[A]
Deprecated
[Since version 0.18.0]
Inherited from:
Generator