irandom_range clarification
#1
Posted 05 January 2011 - 07:04 PM
#2
Posted 05 January 2011 - 07:11 PM
- manual says. listen to it. irandom(1,6) would return 1,2,3,4,5, or 6.irandom_range(x1,x2) Returns a random real number between x1 (inclusive) and x2 (inclusive). Both x1 and x2 must be integer values (otherwise they are rounded down).
#3
Posted 05 January 2011 - 07:18 PM
- manual says. listen to it. irandom(1,6) would return 1,2,3,4,5, or 6.irandom_range(x1,x2) Returns a random real number between x1 (inclusive) and x2 (inclusive). Both x1 and x2 must be integer values (otherwise they are rounded down).
Thanks! Guess I shouldn't rely solely on the wiki since it says x2 is EXCLUSIVE:
Description
The irandom_range() function in Game Maker returns a random integer value between x1 (inclusive) and x2 (exclusive).
http://wiki.yoyogames.com/index.php/Irandom_range
#4
Posted 05 January 2011 - 07:24 PM
- manual says. listen to it. irandom(1,6) would return 1,2,3,4,5, or 6.irandom_range(x1,x2) Returns a random real number between x1 (inclusive) and x2 (inclusive). Both x1 and x2 must be integer values (otherwise they are rounded down).
Thanks! Guess I shouldn't rely solely on the wiki since it says x2 is EXCLUSIVE:Description
The irandom_range() function in Game Maker returns a random integer value between x1 (inclusive) and x2 (exclusive).
http://wiki.yoyogames.com/index.php/Irandom_range
Wiki is fixed.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











