Quit Your Job to Build Iphone App
Friday, November 2, 2012
Unity How to generate random number
Here is the easy way
var mynumber: int;
mynumber = Random.Range(1,4);
//this will random number from 1 to 3, if you put (2,5) it will random number from 2 to 4
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment