1,482
edits
imported>Jlundin No edit summary |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
int Function RandomInt(int aiMin = 0, int aiMax = 100) native global | int Function RandomInt(int aiMin = 0, int aiMax = 100) native global | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Get a random number between 0 and 100 | ; Get a random number between 0 and 100 | ||
int random = Utility.RandomInt() | int random = Utility.RandomInt() | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Get a random number between 0 and 10 | ; Get a random number between 0 and 10 | ||
int random = Utility.RandomInt(0, 10) | int random = Utility.RandomInt(0, 10) | ||
</ | </syntaxhighlight> | ||
== See Also == | == See Also == | ||
*[[Utility Script]] | *[[Utility Script]] | ||
*[[RandomFloat - Utility]] | *[[RandomFloat - Utility]] | ||