KatsAwful Posted May 7, 2020 Share Posted May 7, 2020 Pretty much just asking the title, I'm having some issues using it as a random array index. The docs don't specify specifically if its inclusive or not Link to comment Share on other sites More sharing options...
QQuix Posted May 7, 2020 Share Posted May 7, 2020 I do not know, but I found this consideration from Dragoon Wraith in the wiki Rand talk page "A short question dose rand 1 10 return any number bigger than 1 and less than 10 or does it also include 1 and 10? As it returns a float value with quite a few decimal places, it pretty much doesn't matter. The difference between stopping at 9.999999 and 10 is marginal, and won't affect the odds in any meaningful way. Just be sure to check like < 2, < 3, < 4, and so on, rather than ==1, ==2, etc. Dragoon Wraith TALK 20:31, 18 February 2009 (EST)" Link to comment Share on other sites More sharing options...
Recommended Posts