Random

object Random
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](implicit ev: Random[F]): Random[F]
def javaSecuritySecureRandom[F[_]](n: Int)(implicit evidence$22: Sync[F]): F[Random[F]]
def javaSecuritySecureRandom[F[_]](implicit evidence$23: Sync[F]): F[Random[F]]
def javaUtilConcurrentThreadLocalRandom[F[_]](implicit evidence$21: Sync[F]): Random[F]
def javaUtilRandom[F[_]](random: Random)(implicit evidence$20: Sync[F]): F[Random[F]]

Lift Java Random to this algebra. Note: this implies the ability for external locations to manipulate the underlying state without referential transparency.

Lift Java Random to this algebra. Note: this implies the ability for external locations to manipulate the underlying state without referential transparency.

def scalaUtilRandom[F[_]](implicit evidence$1: Sync[F]): F[Random[F]]

Creates a new random number generator

Creates a new random number generator

def scalaUtilRandomN[F[_]](n: Int)(implicit evidence$17: Sync[F]): F[Random[F]]

Creates Several Random Number Generators and equally allocates the load across those instances.

Creates Several Random Number Generators and equally allocates the load across those instances.

From the java class docs: https://docs.oracle.com/javase/8/docs/api/java/util/Random.html#java.util.Random

Instances of java.util.Random are threadsafe. However, the concurrent use of the same java.util.Random instance across threads may encounter contention and consequent poor performance. Consider instead using ThreadLocalRandom in multithreaded designs.

def scalaUtilRandomSeedInt[F[_]](seed: Int)(implicit evidence$18: Sync[F]): F[Random[F]]

Creates a new random number generator using a single integer seed.

Creates a new random number generator using a single integer seed.

def scalaUtilRandomSeedLong[F[_]](seed: Long)(implicit evidence$19: Sync[F]): F[Random[F]]

Creates a new random number generator using a single long seed.

Creates a new random number generator using a single long seed.

Implicits

Implicits

implicit def catsEitherTRandom[F[_], L](implicit evidence$2: Random[F], evidence$3: Functor[F]): Random[[_] =>> EitherT[F, L, _$6]]

Random instance built for cats.data.EitherT values initialized with any F data type that also implements Random.

Random instance built for cats.data.EitherT values initialized with any F data type that also implements Random.

implicit def catsIndexedReaderWriterStateTRandom[F[_], E, L, S](implicit evidence$14: Random[F], evidence$15: Applicative[F], evidence$16: Monoid[L]): Random[[_] =>> IndexedReaderWriterStateT[F, E, L, S, S, _$18]]

Random instance built for cats.data.IndexedReaderWriterStateT values initialized with any F data type that also implements Random.

Random instance built for cats.data.IndexedReaderWriterStateT values initialized with any F data type that also implements Random.

implicit def catsIndexedStateTRandom[F[_], S](implicit evidence$7: Random[F], evidence$8: Applicative[F]): Random[[_] =>> IndexedStateT[F, S, S, _$12]]

Random instance built for cats.data.IndexedStateT values initialized with any F data type that also implements Random.

Random instance built for cats.data.IndexedStateT values initialized with any F data type that also implements Random.

implicit def catsIorTRandom[F[_], L](implicit evidence$12: Random[F], evidence$13: Functor[F]): Random[[_] =>> IorT[F, L, _$16]]

Random instance built for cats.data.IorT values initialized with any F data type that also implements Random.

Random instance built for cats.data.IorT values initialized with any F data type that also implements Random.

implicit def catsKleisliRandom[F[_], R](implicit evidence$4: Random[F]): Random[[_] =>> Kleisli[F, R, _$8]]

Random instance built for cats.data.Kleisli values initialized with any F data type that also implements Random.

Random instance built for cats.data.Kleisli values initialized with any F data type that also implements Random.

implicit def catsOptionTRandom[F[_]](implicit evidence$5: Random[F], evidence$6: Functor[F]): Random[[_] =>> OptionT[F, _$10]]

Random instance built for cats.data.OptionT values initialized with any F data type that also implements Random.

Random instance built for cats.data.OptionT values initialized with any F data type that also implements Random.

implicit def catsWriterTRandom[F[_], L](implicit evidence$9: Random[F], evidence$10: Applicative[F], evidence$11: Monoid[L]): Random[[_] =>> WriterT[F, L, _$14]]

Random instance built for cats.data.WriterT values initialized with any F data type that also implements Random.

Random instance built for cats.data.WriterT values initialized with any F data type that also implements Random.