|
|
|
|
RandomCryptoInteger (Función) Devuelve un número aleatorio que puede ser utilizado con las tecnologías criptográficas. // 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 <Result>: Integro - Entero aleatorio (incluido entre 0 y 2 147 483 647),
- -1 si se produce un error.
El cálculo de un número aleatorio con un límite superior Ocultar los detalles
<Result> = RandomCryptoInteger(<Upper bound>)
<Result>: Integro - Entero aleatorio (incluido entre 0 y el límite superior, inclusive)
- -1 si se produce un error.
<Upper bound>: Integro Límite superior del número devuelto (incluido entre 1 y 2 147 483 647).
El cálculo de un número aleatorio con un límite inferior y otro superior Ocultar los detalles
<Result> = RandomCryptoInteger(<Lower bound> , <Upper bound>)
<Result>: Integro - Entero aleatorio (incluido entre los límites inferior y superior, ambos inclusive),
- -1 si se produce un error.
<Lower bound>: Integro Límite inferior del número devuelto (incluido entre 0 y 2 147 483 647) <Upper bound>: Integro Límite superior del número devuelto (incluido entre 1 y 2 147 483 647) Observaciones - La primera llamada a la función puede ser bastante larga (alrededor de un segundo) porque inicializar el mecanismo aleatorio es muy complejo.
- La función InitRandom no tiene ningún efecto en el resultado de la función RandomCryptoInteger.
Clasificación Lógica de negocio / UI: Código neutro
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|