This page lists examples of working with random numbers, uncertainty and randomness in general.
// Declare a variable to store the random numberlet number: Int = 0; // Generate a new random number, which is an unsigned 256-bit integernumber = randomInt(); // Generate a random number between 1 and 12number = random(1, 12);