Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity random range

Random.Range(0f, 10f); // Return a float between 0 and 10 (Inclusive)
Random.Range(0, 10); // Return a int between 0 and 9 (Inclusive)
 
PREVIOUS NEXT
Tagged: #unity #random #range
ADD COMMENT
Topic
Name
3+2 =