Random is a class that represents a seeded random number generator. It uses 'sfc32' (Simple Fast Counter) to generate the random numbers and uses 'cyrb128' to generate a seed from a string.

Implementation source can be found here: https://stackoverflow.com/a/47593316/2115633

Constructors

Properties

a: number
b: number
c: number
d: number

Methods

  • Parameters

    • minInclusive: number
    • Optional maxExclusive: number

    Returns number

  • Parameters

    • length: number
    • characters: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'

    Returns string