object Random extends RandomCompanionPlatform
- Source
- Random.scala
- Alphabetic
- By Inheritance
- Random
- RandomCompanionPlatform
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]](implicit ev: Random[F]): Random[F]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def catsEitherTRandom[F[_], L](implicit arg0: Random[F], arg1: Functor[F]): Random[[γ$0$]EitherT[F, L, γ$0$]]
Random instance built for
cats.data.EitherT
values initialized with anyF
data type that also implementsRandom
. - implicit def catsIndexedReaderWriterStateTRandom[F[_], E, L, S](implicit arg0: Random[F], arg1: Applicative[F], arg2: Monoid[L]): Random[[ζ$6$]IndexedReaderWriterStateT[F, E, L, S, S, ζ$6$]]
Random instance built for
cats.data.IndexedReaderWriterStateT
values initialized with anyF
data type that also implementsRandom
. - implicit def catsIndexedStateTRandom[F[_], S](implicit arg0: Random[F], arg1: Applicative[F]): Random[[δ$3$]IndexedStateT[F, S, S, δ$3$]]
Random instance built for
cats.data.IndexedStateT
values initialized with anyF
data type that also implementsRandom
. - implicit def catsIorTRandom[F[_], L](implicit arg0: Random[F], arg1: Functor[F]): Random[[γ$5$]IorT[F, L, γ$5$]]
Random instance built for
cats.data.IorT
values initialized with anyF
data type that also implementsRandom
. - implicit def catsKleisliRandom[F[_], R](implicit arg0: Random[F]): Random[[γ$1$]Kleisli[F, R, γ$1$]]
Random instance built for
cats.data.Kleisli
values initialized with anyF
data type that also implementsRandom
. - implicit def catsOptionTRandom[F[_]](implicit arg0: Random[F], arg1: Functor[F]): Random[[β$2$]OptionT[F, β$2$]]
Random instance built for
cats.data.OptionT
values initialized with anyF
data type that also implementsRandom
. - implicit def catsWriterTRandom[F[_], L](implicit arg0: Random[F], arg1: Applicative[F], arg2: Monoid[L]): Random[[γ$4$]WriterT[F, L, γ$4$]]
Random instance built for
cats.data.WriterT
values initialized with anyF
data type that also implementsRandom
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaUtilConcurrentThreadLocalRandom[F[_]](implicit arg0: kernel.Sync[F]): Random[F]
- def javaUtilRandom[F[_]](random: java.util.Random)(implicit arg0: kernel.Sync[F]): F[Random[F]]
Lift Java Random to this algebra.
Lift Java Random to this algebra. Note: this implies the ability for external locations to manipulate the underlying state without referential transparency.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def scalaUtilRandom[F[_]](implicit arg0: kernel.Sync[F]): F[Random[F]]
Creates a new random number generator
- def scalaUtilRandomN[F[_]](n: Int)(implicit arg0: kernel.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 arg0: kernel.Sync[F]): F[Random[F]]
Creates a new random number generator using a single integer seed.
- def scalaUtilRandomSeedLong[F[_]](seed: Long)(implicit arg0: kernel.Sync[F]): F[Random[F]]
Creates a new random number generator using a single long seed.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def javaSecuritySecureRandom[F[_]](implicit arg0: kernel.Sync[F]): F[Random[F]]
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.0) Call SecureRandom.javaSecuritySecureRandom
- def javaSecuritySecureRandom[F[_]](n: Int)(implicit arg0: kernel.Sync[F]): F[Random[F]]
- Annotations
- @deprecated
- Deprecated
(Since version 3.4.0) Call SecureRandom.javaSecuritySecureRandom