1.

Solve : Random Integer in QBASIC??

Answer»

Is it possible to have a random integer in QBASIC, like %random% in BATCH, but it won't TAKE a number over a certain amount, like in Turing?Got it! If I just use a loop and INTEGERS, pretty simple.


a = INT(RND * 10) + 1

is a random number from 1-10.



Discussion

No Comment Found