Dota 2 Workshop Tools/Scripting/API/Global.RandomInt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Clarified that the range is inclusive.)
(Dota_Lebot push: Updated Page)
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 02:11, 17 June 2015

Note.pngNote: This page is automatically generated. Any changes may be overwritten

Function Description

int RandomInt(int a, int b)

Get a random int within a range


Parameters

Type Name Description
int a No Description Set
int b No Description Set

Returns

int - No Description Set