figureone
    Preparing search index...

    Function rand

    • Return a random number.

      If a max = null, then the returned number will be in the range of 0 to minOrMax.

      Otherwise the returned value is in the range of minOrMax to max.

      Use sign to also return a random sign (negative or positive);

      Parameters

      • minOrMax: number
      • max: number | null = null
      • plusOrMinus: boolean = false

      Returns number

      random number