Need some help making something in SMILEBasic

  • Thread starter MysticSniper
  • Start date
MysticSniper

MysticSniper

Spirit of a Dragon
Towns Folk
I need it to run the RND command multiple times and assign those to numbers, then ask the user to select one of those numbers. It also needs to have only a certain amout of numbers can have a certain outcome(like only 3 numbers caan have outcome 1, 5 numbers have outcome 2, ect.).
 
Last edited:
I need it to run the RND command multiple times and assign those to numbers, then ask the user to select one of those numbers. It also needs to have only a certain amout of numbers can have a certain outcome(like only 3 numbers caan have outcome 1, 5 numbers have outcome 2, ect.).
You can do something like this in it.
X = RND(-TI) : REM Initialising
PRINT INT(RND(1)*100) : REM Integer random numbers from 0 to 99
PRINT INT(RND(1)*6)+1 : REM Integer random numbers from 1 to 6 (for dice simulation)
PRINT INT(RND(1)*49)+1 : REM Integer random number from 1 to 49 (for lotto simulation, for example famous German lotto 6 out 49)
PRINT (RND(0)*101)+100 : REM Random numbers from 100 to 201
 
Back
Top