home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
progmisc
/
pbc22b.zip
/
PBC$BAS.ZIP
/
SHUFFLES.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-04-19
|
646b
|
17 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1993 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