ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Queue, stack, list and array functions / Array functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 25 (83), Array variable.Mix is kept for backward compatibility. This function has been replaced with <Array>.Shuffle.
Shuffles the elements of a WLanguage array.
Example
// Initialisation du mélange aléatoire
InitRandom()

// Remplissage du tableau
PlayList is array of strings
...

// Mélange des éléments du tableau
PlayList.Shuffle()
Syntax
<WLanguage array>.Mix()
<WLanguage array>: Array variable
WLanguage array to use. This array can contain from 1 to N dimensions.
Remarks
  • The array element shuffle is based on the generation of random numbers. You must use InitRandom to reinitialize the shuffle.
  • This function cannot be used on the associative arrays.
  • If the array includes several dimensions, the shuffle is performed through the different dimensions.
Component: wd300vm.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help