Random::randomInt()
Returns a random integer between 0 and max.
Syntax
Java
.randomInt(max)
.randomInt(min, max)
Parameters
| Name | Data Type | Description |
|---|---|---|
| max | int | the maximum integer |
| min | int | the minimum integer |
Return
int

Returns a random integer between 0 and max.
.randomInt(max)
.randomInt(min, max)
| Name | Data Type | Description |
|---|---|---|
| max | int | the maximum integer |
| min | int | the minimum integer |
int