UniformLong

case
class UniformLong(min: Long, max: Long) extends LongDistribution

A uniform Long distribution.

Samples a random variable uniformly between min and max.

Value Params
max

The maximum possible value.

min

The minimum possible value.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def getLong: Long

Provides a random value uniformly sampled between min and max.

Provides a random value uniformly sampled between min and max.

Returns

The random value.

Definition Classes
override
def longEstimate: Long

Provides an estimate of the values that can be generated.

Provides an estimate of the values that can be generated.

Uses the median of the uniform distribution.

Returns

The median as an estimate of the values that can be generated.

Definition Classes

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product