Results for “Std.Random.Generator”
17 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Random.Generator
A generator's state: one number that carries everything it remembers.
- Std.Random.below
&Std.Random.Generator -> N -> (Std.Random.Generator, N) where N: IntegerA number below a bound, and the generator that follows.
- Std.Random.between
&Std.Random.Generator -> N -> N -> (Std.Random.Generator, N) where N: IntegerA number between two bounds, the lower included and the upper excluded.
- Std.Random.boolean
&Std.Random.Generator -> (Std.Random.Generator, Bool)A truth value, true about half the time.
- Std.Random.chance
&Std.Random.Generator -> Int -> (Std.Random.Generator, Bool)A truth value true with the given chance in a hundred.
- Std.Random.fromClock
Std.Random.GeneratorA generator started from the clock.
- Std.Random.fromSeed
UInt64 -> Std.Random.GeneratorA generator started from a seed.
- Std.Random.identifier
&Std.Random.Generator -> Int -> (Std.Random.Generator, Str)Text of lower-case letters and digits, for an identifier a person will read.
- Std.Random.next
&Std.Random.Generator -> (Std.Random.Generator, UInt64)The next state and the number it produced.
- Std.Random.numbers
&Std.Random.Generator -> Int -> N -> (Std.Random.Generator, Array[N]) where N: IntegerAn array of numbers below a bound.
- Std.Random.pick
&Std.Random.Generator -> &Array[T] -> (Std.Random.Generator, Option[T])One element of an array, or
Nonewhen it is empty. - Std.Random.sample
&Std.Random.Generator -> &Array[T] -> Int -> (Std.Random.Generator, Array[T])A number of elements drawn without replacement, in a shuffled order.
- Std.Random.shuffle
&Std.Random.Generator -> &Array[T] -> (Std.Random.Generator, Array[T])The elements in a shuffled order.
- Std.Random.text
&Std.Random.Generator -> Int -> Str -> (Std.Random.Generator, Str)Text of a given length drawn from an alphabet.
- Std.Test.Property.forAll
Str -> UInt64 -> Int -> fn(Std.Random.Generator) -> (Std.Random.Generator, T) -> fn(T) -> Array[T] -> fn(T) -> Bool -> Std.Test.CheckA check that a property holds for every generated value.
- Std.Uuid.version4
&Std.Random.Generator -> (Std.Random.Generator, Std.Uuid.Uuid)A random identifier.
- Std.Uuid.version7
&Std.Random.Generator -> Int -> (Std.Random.Generator, Std.Uuid.Uuid)An identifier that sorts by when it was made.
