Dota 2 Workshop Tools/Scripting/API/Global.RandomInt: Difference between revisions
< Dota 2 Workshop Tools | Scripting | API
Jump to navigation
Jump to search
RoyAwesome (talk | contribs) (Dota_Lebot push: Updated Page) |
(Clarified that the range is inclusive.) |
||
Line 9: | Line 9: | ||
''Get a random ''int'' within a range'' | ''Get a random ''int'' within a range'' | ||
The range is inclusive, so a or b can be returned. | |||
Revision as of 11:19, 3 December 2014

Function Description
int RandomInt(int a, int b)
Get a random int within a range
The range is inclusive, so a or b can be returned.
Parameters
Type | Name | Description |
---|---|---|
int | a | No Description Set |
int | b | No Description Set |
Returns
int - No Description Set