Skip to main content

sfc32

Callable

  • sfc32(a: number, b: number, c: number, d: number): () => number

  • A PRNG(Pseudo random number generator) helper to generate random number sequence by seed. Stole this function and the function below from stackoverflow


    Parameters

    • a: number

      seed 1

    • b: number

      seed 2

    • c: number

      seed 3

    • d: number

      seed 4

    Returns () => number

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