Anonymous user
Guess the number/With feedback (player): Difference between revisions
Guess the number/With feedback (player) (view source)
Revision as of 23:07, 27 October 2018
, 5 years ago→with positive integers: elided a dead statement.
(→with positive integers: added/changed comments and statements, simplified the program.) |
m (→with positive integers: elided a dead statement.) |
||
Line 2,268:
if low=='' | low=="," then low= 1 /*Not specified? Then use the default.*/
if high=='' | high=="," then high= 1000 /* " " " " " " */
▲if datatype(seed, 'W') then call random ,,seed /*Useful seed? Then use a random seed.*/
?= random(low, high) /*generate random number from low->high*/
$= "──────── Try to guess my number (it's between " /*part of a prompt message.*/
|