home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
dos
/
prg
/
bas
/
hanlin3
/
pbc30a
/
mshuffst.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
650b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB MatShuffleSt (Array() AS STRING, StartPosn%, EndPosn%)
Elements% = EndPosn% - StartPosn% + 1
FOR tmp% = StartPosn% TO EndPosn%
SWAP Array(tmp%), Array(RndI%(Elements%) + StartPosn%)
NEXT
END SUB