Guess the number/With feedback (player): Difference between revisions

m
→‎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 /* " " " " " " */
ifiif datatype(seed, 'W') then call random ,,seed /*Useful seed? Then use a random seed.*/
if frac=='' | frac=="," then frac= 1 /* " " " " " " */
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.*/