There is the Math.random() function in JavaScript. But this is not the answer, because I want to know how to generate a random number without this function, just pure randomness.
Math.random()