Idris2Doc : IdrisGL.Random

IdrisGL.Random

(source)

Definitions

randomInt : Int->Int->Int
  An unsafe, predictable and limited random integer generator, in range [lower, upper].
Switch <lower> and <upper> if <upper> is LOWER than <lower>.

This function is only for users who want to easily render random picture elements.
Please don't use it for precise calculations.
No random built-in functions been found in idris2 version 0.4.

@ lower Lower bound.
@ upper Upper bound.

Visibility: export
randomNat : Nat->Nat->Nat
  An unsafe, predictable and limited random natrual number generator, in range [lower, upper].
Switch <lower> and <upper> if <upper> is LOWER than <lower>.

This function is only for users who want to easily render random picture elements.
Please don't use it for precise calculations.
No random built-in functions been found in idris2 version 0.4.

@ lower Lower bound.
@ upper Upper bound.

Visibility: export
randomFin : Nat-> (upper : Nat) ->Maybe (Finupper)
  An unsafe, predictable and limited random (Fin upper) generator, in range [lower, upper].
Switch <lower> and <upper> if <upper> is LOWER than <lower>.

This function is only for users who want to easily render random picture elements.
Please don't use it for precise calculations.
No random built-in functions been found in idris2 version 0.4.

@ lower Lower bound.
@ upper Upper bound.

Visibility: export
randomPick : Lista->Maybea
Visibility: export