<rand />
The <rand />
element is used to generate a random integer within a specified range.
Attributes
min
(int, optional): The minimum value of the range (inclusive). Defaults to0
.max
(int, optional): The maximum value of the range (inclusive). Defaults to Rust'si64::MAX
.
Example
<program>
<print>
Random number between 1 and 10: <space /> <rand min="1" max="10" />
</print>
</program>