core/basics/src/integer library

Functions

integer({int? max}) int
This function returns a random integer between 0 and 1,000,000,000. If you pass in a max value, it will return a random integer between 0 and the max value.