Quantcast
Channel: Latest Questions by The_Magical_Kiwi
Viewing all articles
Browse latest Browse all 22

Why is Random.Range exclusive for integers but inclusive for floats?

$
0
0
Hey guys, This is probably a bit of an inane question, but I'm curious. http://docs.unity3d.com/Documentation/ScriptReference/Random.Range.html Why are the arguments for the float one [inclusive], [inclusive] and for the integer one [inclusive], [exclusive]. Is there some technical reason for the discrepancy or is it just arbitrary?

Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>