What is precision of MYSQL RAND() function?
I can't find it on the official page: MYSQL RAND() function is told to return floating-point number, unfortunately it's precision is not stated in a clear way. It can be a single-precision floating-point data, or double-precision, or any other kind of data.
What I would like to know exactly is - what is the maximum integer range [0,N]
in which I can generate random integer numbers with FLOOR(RAND()*N)
such that there won't be any "skips" and any number from 0
to N
can be generated?
Another thing which I would like to know:
How to generate numbers, which are bigger than N
in MySQL?