home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
shuffles.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
646b
|
17 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB ShuffleSt (St$)
FOR tmp% = 1 TO LEN(St$)
posn% = RndI%(LEN(St$)) + 1
ch$ = MID$(St$, tmp%, 1)
MID$(St$, tmp%, 1) = MID$(St$, posn%, 1)
MID$(St$, posn%, 1) = ch$
NEXT
END SUB