Random

trait Random[F[_]] extends Random[F]
Companion
object
trait Random[F]
class Object
trait Matchable
class Any
class RandomImpl[F]

Value members

Abstract methods

def printableString(length: Int): F[String]
Implicitly added by randomForResource
Value Params
length

will default to 1 if parameter is (length <= 0)

Returns

a string of specified length, where every character is consistent with nextPrintableChar

def printableString(length: Int): F[String]
Value Params
length

will default to 1 if parameter is (length <= 0)

Returns

a string of specified length, where every character is consistent with nextPrintableChar

def uuid: F[UUID]
Implicitly added by randomForResource

Generates a Version 4 java.util.UUID

Generates a Version 4 java.util.UUID

def uuid: F[UUID]

Generates a Version 4 java.util.UUID

Generates a Version 4 java.util.UUID

Concrete methods

override def mapK[G[_]](f: FunctionK[F, G]): Random[G]

Modifies the context in which this Random operates using the natural transformation f.

Modifies the context in which this Random operates using the natural transformation f.

Returns

a Random in the new context obtained by mapping the current one using f

Definition Classes
Random

Inherited methods

def betweenDouble(minInclusive: Double, maxExclusive: Double): F[Double]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Inherited from
Random
def betweenDouble(minInclusive: Double, maxExclusive: Double): F[Double]

Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed double value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Inherited from
Random
def betweenFloat(minInclusive: Float, maxExclusive: Float): F[Float]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Inherited from
Random
def betweenFloat(minInclusive: Float, maxExclusive: Float): F[Float]

Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed float value between min (inclusive) and max (exclusive) from this random number generator's sequence.

Inherited from
Random
def betweenInt(minInclusive: Int, maxExclusive: Int): F[Int]
Implicitly added by randomForResource

Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def betweenInt(minInclusive: Int, maxExclusive: Int): F[Int]

Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed int value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def betweenLong(minInclusive: Long, maxExclusive: Long): F[Long]
Implicitly added by randomForResource

Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def betweenLong(minInclusive: Long, maxExclusive: Long): F[Long]

Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed long value between min (inclusive) and the specified value max (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def nextAlphaNumeric: F[Char]
Implicitly added by randomForResource

Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

Inherited from
Random
def nextAlphaNumeric: F[Char]

Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

Returns a pseudorandomly chosen alphanumeric character, equally chosen from A-Z, a-z, and 0-9.

Inherited from
Random
def nextBoolean: F[Boolean]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

Inherited from
Random
def nextBoolean: F[Boolean]

Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.

Inherited from
Random
def nextBytes(n: Int): F[Array[Byte]]
Implicitly added by randomForResource

Generates n random bytes and returns them in a new array.

Generates n random bytes and returns them in a new array.

Inherited from
Random
def nextBytes(n: Int): F[Array[Byte]]

Generates n random bytes and returns them in a new array.

Generates n random bytes and returns them in a new array.

Inherited from
Random
def nextDouble: F[Double]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

Inherited from
Random
def nextDouble: F[Double]

Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.

Inherited from
Random
def nextFloat: F[Float]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

Inherited from
Random
def nextFloat: F[Float]

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from this random number generator's sequence.

Inherited from
Random
def nextGaussian: F[Double]
Implicitly added by randomForResource

Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

Inherited from
Random
def nextGaussian: F[Double]

Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence

Inherited from
Random
def nextInt: F[Int]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

Inherited from
Random
def nextInt: F[Int]

Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

Inherited from
Random
def nextIntBounded(n: Int): F[Int]
Implicitly added by randomForResource

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def nextIntBounded(n: Int): F[Int]

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def nextLong: F[Long]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

Inherited from
Random
def nextLong: F[Long]

Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

Returns the next pseudorandom, uniformly distributed long value from this random number generator's sequence.

Inherited from
Random
def nextLongBounded(n: Long): F[Long]
Implicitly added by randomForResource

Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def nextLongBounded(n: Long): F[Long]

Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Returns a pseudorandom, uniformly distributed long value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.

Inherited from
Random
def nextPrintableChar: F[Char]
Implicitly added by randomForResource

Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

Inherited from
Random
def nextPrintableChar: F[Char]

Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

Returns the next pseudorandom, uniformly distributed value from the ASCII range 33-126.

Inherited from
Random
def nextString(length: Int): F[String]
Implicitly added by randomForResource

Returns a pseudorandomly generated String.

Returns a pseudorandomly generated String.

Inherited from
Random
def nextString(length: Int): F[String]

Returns a pseudorandomly generated String.

Returns a pseudorandomly generated String.

Inherited from
Random
def shuffleList[A](l: List[A]): F[List[A]]
Implicitly added by randomForResource

Returns a new collection of the same type in a randomly chosen order.

Returns a new collection of the same type in a randomly chosen order.

Inherited from
Random
def shuffleList[A](l: List[A]): F[List[A]]

Returns a new collection of the same type in a randomly chosen order.

Returns a new collection of the same type in a randomly chosen order.

Inherited from
Random
def shuffleVector[A](v: Vector[A]): F[Vector[A]]
Implicitly added by randomForResource

Returns a new collection of the same type in a randomly chosen order.

Returns a new collection of the same type in a randomly chosen order.

Inherited from
Random
def shuffleVector[A](v: Vector[A]): F[Vector[A]]

Returns a new collection of the same type in a randomly chosen order.

Returns a new collection of the same type in a randomly chosen order.

Inherited from
Random