WINDEV      WEBDEV    WINDEV Mobile       Others RandomCryptoInteger (Function) In french: HasardCryptoEntier Returns a random number that can be used with the cryptographic technologies.Example // Retrieve an integer included between 0 and 2 147 483 647ResRandom = RandomCryptoInteger()// Retrieve an integer included between 0 and 34ResRandom = RandomCryptoInteger(34)// Retrieve an integer included between 7 and 21ResRandom = RandomCryptoInteger(7, 21) Syntax Calculating a random number = RandomCryptoInteger() : IntegerRandom integer (included between 0 and 2 147 483 647),-1 if an error occurred. Calculating a random number with an upper bound = RandomCryptoInteger() : IntegerRandom integer (included between 0 and the upper bound, inclusive) -1 if an error occurred. : IntegerUpper bound of returned number (included between 1 and 2 147 483 647). Calculating a random number with a lower bound and an upper bound = RandomCryptoInteger( , ) : IntegerRandom integer (included between the lower and upper bounds, inclusive),-1 if an error occurred. : IntegerLower bound of returned number (included between 0 and 2 147 483 647) : IntegerUpper bound of returned number (included between 1 and 2 147 483 647)Remarks 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.Business / UI classification: Neutral codeComponent: wd280std.dll Minimum version required Version 23 This page is also available for…