The random 3 function returns a number 0, 1, or 2 randomly. (Use any number to randomly return numbers up to but not including that number.) if is used to test a condition.
x = random 3
if x is 0
write 'Try again to get your fortune.'
if x is 1
write 'You will have great luck today!'
if x is 2
write 'You will have bad luck today.'