kytschBASIC

Put down that phone!
Please view me on real computer.

SHUFFLE
ARRAY

Randomly shuffle up an array.

Example

DIM test$=("card1","card2","card3","card4","card5","card6","card7","card8","card9","card10")

SHUFFLE(test$)

FOR val$ IN test$

	PRINT val$

	PRINT " "

NEXT

Output

card9 card6 card3 card5 card10 card7 card2 card8 card4 card1 

See also

DEF  | DIM  | DUMP  | ERASE  | LET  | MERGE  | NATSORT  | NSORT  | POP  | SHIFT  | SORT  | SSORT