AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de WINDEV
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns a random number that can be used with the cryptographic technologies.
Ejemplo
// Retrieve an integer included between 0 and 2 147 483 647
ResRandom = RandomCryptoInteger()
// Retrieve an integer included between 0 and 34
ResRandom = RandomCryptoInteger(34)
// Retrieve an integer included between 7 and 21
ResRandom = RandomCryptoInteger(7, 21)
Sintaxis

Calculating a random number Ocultar los detalles

<Result> = RandomCryptoInteger()
<Result>: Integer
  • Random integer (included between 0 and 2 147 483 647),
  • -1 if an error occurred.

Calculating a random number with an upper bound Ocultar los detalles

<Result> = RandomCryptoInteger(<Upper bound>)
<Result>: Integer
  • Random integer (included between 0 and the upper bound, inclusive)
  • -1 if an error occurred.
<Upper bound>: Integer
Upper bound of returned number (included between 1 and 2 147 483 647).

Calculating a random number with a lower bound and an upper bound Ocultar los detalles

<Result> = RandomCryptoInteger(<Lower bound> , <Upper bound>)
<Result>: Integer
  • Random integer (included between the lower and upper bounds, inclusive),
  • -1 if an error occurred.
<Lower bound>: Integer
Minimum bounds of the number returned (between 0 and 2,147,483,647)
<Upper bound>: Integer
Upper bound of returned number (included between 1 and 2 147 483 647)
Observaciones
  • The first call to the function can be quite long (about one second) because initializing the random mechanism is very complex.
  • InitRandom has no effect on the result of RandomCryptoInteger.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300std.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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