Dokumentaro de Gambaso
Compilation & Installation
Components
gb
Array
Remove
Error
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Array.Shuffle (gb)

Sub Shuffle ( )

Since 3.13

Randomly shuffle the array using the Fisher–Yates algorithm.

Dim A As String[] = ["G", "A", "M", "B", "A", "S"]
A.Shuffle()
Print A.Join()
B,A,G,A,M,S