Ive created a code of 3 circles locate in the left side of the screen , i want all three to move in a random speed value and in the end 1 of them will get to the end of the screen and win the race. my only problem is that i use the RND command , and the result are not so good , first of all every time i run the program i get the same result so i dont think its random , and seconed there are two circles running the same speed . some1 can help me figure it out ?
BallSize = 20
REM PLAYER 1
Ball1X = 20
Ball1Y = 240
Ball1Speed# = RND(2.5)
REM PLAYER 2
Ball2X = 20
Ball2Y = 180
Ball2Speed# = RND(2.5)
REM PLAYER 3
Ball3X = 20
Ball3Y = 300
Ball3Speed# = RND(2.5)
DO
CLS
Ball1X = Ball1X + Ball1Speed#
Ball2X = Ball2X + Ball2Speed#
Ball3X = Ball3X + Ball3Speed#
CIRCLE Ball1X,Ball1Y,BallSize
CIRCLE Ball2X,Ball2Y,BallSize
CIRCLE Ball3X,Ball3Y,BallSize
LOOP