generateRandom

generateRandom() function is the Standard function available in 200OK.

Description : The generateRandom function generates a random decimal number within the specified range, defined by the parameters x and y.

Syntax : fx_generateRandom()

Example : fx_generateRandom(1, 10) would yield a random decimal number between 1 and 10 as the result.

Here we go with simple scenario using the above function.

Scenario : A game developer is creating a virtual dice rolling feature for a board game application. They utilize a function to generate a random number within the range of 1 to 6, simulating the roll of a six-sided die.

Request Side :

Response Side :

Last updated