From Clomosy Docs

Revision as of 15:15, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function is a custom function used on the Clomosy platform. It is employed to generate a random number between two numerical values. The randomly generated number within the function is inclusive of the first parameter but exclusive of the last parameter.


Example
In the example, when the program is executed, a random number between 10 and 20 will be generated.

var
  NumberOfPredictions : Integer;

{
  NumberOfPredictions = clMath.GenerateRandom(10,20);
  ShowMessage('The generated number: '+IntToStr(NumberOfPredictions));
}

Output:

See Also