Skip to main content

randomSeeding

Callable

  • randomSeeding(seed: string): () => number

  • Random seeding tool to generate random seeding sequence that is able to be used. This allows the random result always be the same when the seed is the same. (This implementation is needed because dialog refreshes every frame, we have to generate garbled text that are the same.) (Otherwise it will just keep flashing and changing the text.)


    Parameters

    • seed: string

      The seed to generate random numbers.

    Returns () => number

    • The function where it could be used to do PRNG magic.
      • (): number
      • Returns number