Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Array functions >

ARRAY SHUFFLE

Previous pageReturn to chapter overviewNext page

 

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