AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de colas, pilas, listas y arrays / Funciones de arrays
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
New in version 2024
PHP This function is now available for WEBDEV websites in PHP.
Example
// Initialize shuffle
InitRandom()

// Fill the array
PlayList is array of strings
...

// Shuffle the array elements
PlayList.Shuffle()
Syntax
<WLanguage array>.Shuffle()
<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: wd290vm.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/11/2023

Señalar un error o enviar una sugerencia | Ayuda local