Just as every programming language has a function to create random values Robloxs Lua scripting also has this math module which can generate random values. A random integer between min or 0 and max or getrandmax inclusive Return Type. This module implements pseudo-random number generators for various distributions.
Random max -min min.
Random max -min min. A Number representing a number from 0 up to but not including 1. A random number generator produces pseudorandom numbers in a determinable sequence or pattern and the seed value specifies the starting point in the sequence so two Random instances constructed with the same seed will produce the same sequence of pseudorandom numbers. All results will appear in the blank field at the bottom.