3 ms·
Yes, my comment (prior to deletion) said and rand(n), depending on implementation, may explicitly exclude n. I looked it up for C/C++ first, but it was slightl
by kbenson 11y ago
Yes, my comment (prior to deletion) said and rand(n), depending on implementation, may explicitly exclude n. I looked it up for C/C++ first, but it was slightly confusing, and there are articles that go into quite a bit of depth about how rand() can be misleading. perldoc was my next stop, as I was almost positive that perl's rand explicitly excluded the upper bound (and it does).
My recollection of 100-sided dice was that it was often printed as "00", so you could take it as either 0 or 100, depending on your need.