So, this is how I read your snippet.

variable number1 equals 4
while number1 is greater than 3
number1 is a random double from 0 to 1 multiplied by 10 and converted to an int.
display...