home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
RND-STR.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
45 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME RND-STR .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────
? "│ fRNDstr$( LowAscii%, HighAscii%, Length% )
? "├────────────────────────────────────────────────────────────────
? "│ I just got tired of writing this one every third program, so
? "│ here it is!
? "└─────────────────────────────────────────────────────────────────────────
RANDOMIZE TIMER
FOR HowLong% = 10 TO 20 STEP 2 '
PRINT "┤ "; fRNDstr$( 65, 90, HowLong% ); " ├" ' A -> Z
NEXT '
PRINT '
'
FOR HowLong% = 20 TO 10 STEP -2 '
PRINT "┤ "; fRNDstr$( 97, 122, HowLong% ); " ├" ' a - z
NEXT '
'
PRINT '
PRINT fRNDstr$( 48, 57, 50 ) ' 0 - 9