Novah Documentation

novah.random

Function for working with random numbers. These functions are not cryptographically secure.

Types

Declarations


randBoolean

visibility: public
type: Unit -> Boolean

Returns a random boolean value.


randInt

visibility: public
type: Int32 -> Int32

Returns an int between 0 (inclusive) and bound (exclusive).


randIntBetween

visibility: public
type: Int32 -> Int32 -> Int32

Returns an int between start (inclusive) and end (exclusive).


randInt64

visibility: public
type: Int64 -> Int64

Returns an int64 between 0 (inclusive) and bound (exclusive).


randInt64Between

visibility: public
type: Int64 -> Int64 -> Int64

Returns an int64 between start (inclusive) and end (exclusive).


randFloat32

visibility: public
type: Float32 -> Float32

Returns an float32 between 0 (inclusive) and bound (exclusive).


randFloat32Between

visibility: public
type: Float32 -> Float32 -> Float32

Returns an float32 between start (inclusive) and end (exclusive).


randFloat64

visibility: public
type: Float64 -> Float64

Returns an float64 between 0 (inclusive) and bound (exclusive).


randFloat64Between

visibility: public
type: Float64 -> Float64 -> Float64

Returns an float64 between start (inclusive) and end (exclusive).