Table of Contents

ugBASIC User Manual

RANDOM

SYNTAX

   = RANDOM type
   = (type) RANDOM

PURPOSE

This function allows you to calculate a random number, in the range that can be represented by the type of data indicated as a parameter, or as data type conversion.

EXAMPLE

  randomScore = RANDOM BYTE
  randomColor = (COLOR) RANDOM

ABBREVIATION

 Rd

AVAILABLE ON

SEE ALSO

RND

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY