| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | RE: Beyond help? |
-> if you want more-random numbers couunt quicly while waiting for a
-> keypress
I wonder how random that would be. Suppose you wrote:
N& = 0
DO
N& = N& + 1
K$ = INKEY$
LOOP UNTIL K$ ""
R% = N& MOD 10
(I used K$ so the same keypress would be available for the program to
use later, if it's needed.)
R% would be an integer between 0 and 9, and its value would depend on
how long the user waited before pressing a key. But how "random" would
it be? It would depend on the user's habits. It might be interesting to
do some experiments.
dow
--- Platinum Xpress/Win/WINServer v3.0pr5
* Origin: The Bayman BBS,Toronto, (416)698-6573 - 1:250/514 (1:250/514)SEEN-BY: 24/903 106/2000 120/544 123/500 140/1 250/514 400/300 633/104 260 SEEN-BY: 633/262 267 270 285 640/954 771/4020 774/605 2432/200 @PATH: 250/514 140/1 106/2000 123/500 774/605 633/260 285 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.