ARRAY SHUFFLE

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > 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