O Monks,
How can one generate a (pseudo)random number between 0 and 1, inclusive? I checked rand and the links it contains to other generators, as well as the Monastery's own search and Google, but all I've found is for random numbers in [0,1), not in [0,1]. Naturally, the probability of getting 1 is 0 anyway, so this has little practical use, but I'm curious.
Edit: It's pointed out below that the probability of getting 1 would not be 0. So I guess this is a practical question.
In reply to inclusive rand by msh210
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |