RandomizeArray

Family: Sort · 2 forms

What it does

RandomizeArray takes array (a void), and returns nothing. That is the first of 2 forms.

Syntax

1
RandomizeArray(array void)
2
RandomizeArray(array void, start integer, end integer)

Parameters

NameTypeIn forms
arrayvoidall
startinteger2
endinteger2

Every form returns

nothing

Example · generated

Form 1, the short one

RandomizeArray(0)DO  Sync()LOOP

Form 2, with every argument

RandomizeArray(0, 1, 1)DO  Sync()LOOP

RandomizeArray is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

2 commands in Sort