Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity random number

// random int
int randnum = Random.Range(2, 10)
// random float
float randnum = Random.Range(2.0f, 10.0f)
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #unity #random #number
ADD COMMENT
Topic
Name
2+7 =