Navigation: thinBasic Modules > Core > Array functions > ARRAY SHUFFLE |
|
Description
Shuffle all or part of array elements.
Syntax
ARRAY SHUFFLE ArrayVariable[([StartIndex])] [FOR nTimes]
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
ArrayVariable |
No |
Name of a declared and already dimensioned array. |
|
StartIndex |
Number |
Yes |
The element index inside the array from which to start. If omitted, 1 is assumed |
nTimes |
Number |
Yes |
Number of times to shuffle array elements. If omitted, 1 is assumed |
Remarks
Restrictions
Only the following array types are supported:
• | numeric [any type] |
• | strings (only dynamic one and not fixed) |
• | UDT |
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |