Dota 2 Workshop Tools/Scripting/API/Global.RandomInt

From Valve Developer Community
< Dota 2 Workshop Tools‎ | Scripting‎ | API
Revision as of 11:19, 3 December 2014 by Pie4all88 (talk | contribs) (Clarified that the range is inclusive.)
Jump to navigation Jump to search
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

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