math.Rand
From GMod Wiki
Function | |
Syntax |
math.Rand( Float min, Float max ) Where is this used? |
Description: | |
Returns a random float no smaller than min and no larger than max. | |
Returns: | Float |
Part of Library: | math |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Math.Rand]Math.Rand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- Similar to math.random. Unlike math.random, however, this function returns numbers with fractional values. A math.Rand(0,1) would produce numbers such as 0, 0.1, 0.5389, 0.73940, 0.8, and 1.