random
doodle.random$
object random
Attributes
- Source
- random.scala
- Graph
-
- Supertypes
- Self type
-
random.type
Members list
Type members
Classlikes
object Random
Attributes
- Source
- random.scala
- Supertypes
- Self type
-
Random.type
object RandomOp
Attributes
- Companion
- class
- Source
- random.scala
- Supertypes
- Self type
-
RandomOp.type
Implicits
Implicits
implicit def (`a₂`:A) caseDiscrete(elts)=> val`weight₂`:Double=rng.nextDouble() $anon.this.pick[A](0.0,`weight₂`,elts) caseRInt=> rng.nextInt().$asInstanceOf$[A] caseNatural(u)=> rng.nextInt(u).$asInstanceOf$[A] caseRDouble=> rng.nextDouble().$asInstanceOf$[A] caseNormal=> rng.nextGaussian().$asInstanceOf$[A] } overridedefmap[A,B](`fa₂`:RandomOp[A])(`f₂`:Function1[A,B]):RandomOp[B]=Always.apply[B](`f₂`.apply($anon.this.extract[A](`fa₂`))) } (new$anon():Comonad[[A>:Nothing<:Any]=>RandomOp[A]]) }" t="n"class="documentableName ">randomInstances(implicit rng: Random): Comonad[RandomOp]
Attributes
- Source
- random.scala
In this article