Xojo.Math.RandomInt
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
![]() |
This item was deprecated in version 2020r2. Please use Random as a replacement. |
Method
Xojo.Math.RandomInt(min As Int64, max As Int64) As Int64
Supported for all project types and targets.
Supported for all project types and targets.
Returns a random integer in the given range (inclusive).
Notes
Uses the mersenne twister engine (aka PRNG) with the seed set using std::random_device.
An InvalidArgumentException will be raised if min is greater than max. |