Random

tyrian.cmds.Random
object Random

Generate random values.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Random.type

Members list

Type members

Classlikes

final case class Seeded(seed: Long)

Random values produced based on a specific seed value

Random values produced based on a specific seed value

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def alphaNumeric[F[_] : Sync](length: Int): Cmd[F, NextAlphaNumeric]

Random series of alphanumeric characters

Random series of alphanumeric characters

Attributes

def double[F[_] : Sync]: Cmd[F, NextDouble]

Random Double

Random Double

Attributes

def float[F[_] : Sync]: Cmd[F, NextFloat]

Random Float

Random Float

Attributes

def int[F[_] : Sync]: Cmd[F, NextInt]

Random Int

Random Int

Attributes

def int[F[_] : Sync](upperLimit: Int): Cmd[F, NextInt]

Random Int within an upper limit

Random Int within an upper limit

Attributes

def long[F[_] : Sync]: Cmd[F, NextLong]

Random Long

Random Long

Attributes

def long[F[_] : Sync](upperLimit: Long): Cmd[F, NextLong]

Random Long within an upper limit

Random Long within an upper limit

Attributes

def shuffle[F[_] : Sync, A](l: List[A]): Cmd[F, NextShuffle[A]]

Randomly shuffle a list of elements

Randomly shuffle a list of elements

Attributes

Extensions

Extensions

extension [F[_]](i: NextInt)
def toCmd: Cmd[F, NextInt]
extension [F[_]](i: NextLong)
def toCmd: Cmd[F, NextLong]
extension [F[_]](i: NextFloat)
def toCmd: Cmd[F, NextFloat]
extension [F[_]](i: NextDouble)
def toCmd: Cmd[F, NextDouble]
extension [F[_]](i: NextAlphaNumeric)
extension [F[_], A](i: NextShuffle[A])
def toCmd: Cmd[F, NextShuffle[A]]