Guess the number/With feedback (player): Difference between revisions
Content added Content deleted
m (→with positive integers: elided a dead statement.) |
m (→with positive integers: elided a stray "f".) |
||
Line 2,268: | Line 2,268: | ||
if low=='' | low=="," then low= 1 /*Not specified? Then use the default.*/ |
if low=='' | low=="," then low= 1 /*Not specified? Then use the default.*/ |
||
if high=='' | high=="," then high= 1000 /* " " " " " " */ |
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*/ |
?= random(low, high) /*generate random number from low->high*/ |
||
$= "──────── Try to guess my number (it's between " /*part of a prompt message.*/ |
$= "──────── Try to guess my number (it's between " /*part of a prompt message.*/ |