|
I'm trying to select a random number from 1 - 4. Here's my script - what's wrong with it? It only gives numbers from 1-3.
Thanks!
(comments are locked)
|
Make it:
http://unity3d.com/support/documentation/ScriptReference/Random.Range.html Exclusive means it doesn't read that one... Think of in Java like doing a substring function... If you know that... But yea, this'll work =). That's just so messed up...
Apr 24 '11 at 08:42 PM
Muzz 1
Yea... I think it's funny that if you use floats instead of an int, it is inclusive inclusive... So then the second number IS included... Haha.
Apr 24 '11 at 08:43 PM
Justin Warner
Also, when I used (1,3), it gave me those 3 values. I will never get scripting.
Apr 24 '11 at 08:43 PM
Muzz 1
Hmm, that's very strange... It might be a small glitch, never know...
Apr 24 '11 at 09:28 PM
Justin Warner
(comments are locked)
|

When you get this finished I'd like to see it Muzz. It looks interesting.