TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: TERRY RETT
from: DAVID WILLIAMS
date: 1998-04-15 09:47:00
subject: random letters

-> does any one know how to get qbasic to generate random letters , like
-> you would use to make a program which would generate random pass
-> words ,(txt)  or .bas source, i can get it to generate random numbers
-> just not letters ???
Well, there are 26 letters in the alphabet, so if you can make your
program choose a random integer between 1 and 26, inclusive, surely you
can then make it pick out the corresponding letter.
It can be done in a single line of BASIC code. But I won't spoil your
fun by spelling it out...
                             dow
--- PCBoard (R) v15.3 (OS/2) 5
---------------
* Origin: FidoNet: CAP/CANADA Support BBS : 416 287-0234 (1:250/710)

SOURCE: echomail via exec-pc

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™.