Range for Rnd()

From the docs:

Is my observation correct that the random number is never zero or one?

It's 0 < Rnd() < 1?

Statistically I would think that the population of random numbers would would have to have definite endpoints.
https://csrc.nist.gov/glossary/term/random_number#:~:text=Definitions%3A,a%20uniformly%20distributed%20random%20process.

0.0 and 1.0 should both be possible, but there's only an approximately 1 in 4294967295 chance for both of them, so you'd be unlikely to observe either of them without a lot of luck.

Which makes me wonder, what kind of test lxp had this observation derived from.

:laughing:

Apparently, in JScript's Math.Random the range is [0, 1)
random Method (Windows Scripting - JScript)

1 Like

In my memory this would be notated [0;1[ ... but notations could vary from one country to another!

F5 and an itchy trigger finger :cowboy_hat_face:

3 Likes

Deleted

A cherry keyboard's key is said to take around 50,000,000 presses. Means, you must have been wasting almost 86 of them.

What matters to me is how many unique random numbers are within that range and what prime numbers divide that.

The answer is 42

1 Like

I have never seen this notation [0, 1[.
ChatGPT says that it is used primarily in Germany and France. Interesting that USSR used alternative American notation.

Also, apparently, some people write an integral in reverse like this:


Instead of a normal way:

Well if f(x) = C, an integer , it is independent of the integration anyway .