home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 13
/
CD_ASCQ_13_0494.iso
/
maj
/
419
/
mshuffld.bas
< prev
next >
Wrap
BASIC Source File
|
1994-03-13
|
649b
|
15 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION RndI% (TopValue%)
SUB MatShuffleD (Array() AS DOUBLE, StartPosn%, EndPosn%)
Elements% = EndPosn% - StartPosn% + 1
FOR tmp% = StartPosn% TO EndPosn%
SWAP Array(tmp%), Array(RndI%(Elements%) + StartPosn%)
NEXT
END SUB