Jump to content

Is the limits for OBSE Rand inclusive or exclusive?


Recommended Posts

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...