math.randomseed(os.time()) -- sets seed to the current time
math.random();math.random();math.random(); -- discards first few RNG numbers
print(math.random(), math.random(), math.random()) -- some random numbers between 0 and 1
print(math.random(0,1), math.random(0,1), math.random(0,1)) -- either 0 or 1 randomly