Random numbers from Math classes can tend to not be all that random. I had a little bitty idea. What if every bit of a (u)int was randomly generated? This gave me a random number that spans the entire range of an (u)int, and that's great but, that's not how Math.random() actually works so, I simply divide my product by the maximum possible number and I get very very close to the range of decimals Math.random() would generate. I threw some doubling up and multiplication of squares in there mostly to force the random generator to run more times and hopefully make the product even more random.

here are some results for anyone interested. I'm not saying anything about these results ... good, bad, ugly I have no idea. They are just a small example of "the results". I mean, the backbone of this system is the very Math.random() function that isn't all that damn random so... lol. I called random(), Int() and UInt() 100 times and the little label to the left of each result reflects which one was called for that line.
EDIT (new results):
I considered that my last results couldn't be compared to anything. Too many different infos and too little space. This time I ran just random, cut it off at the thousandths place and multiplied by 1000. This gives us a slew of random 0 to 999. Judging by these results I don't feel like its random enough. There isn't enough "less than one hundred" (there isn't any in this picture) and at least one number repeats ... right after its first self O.o . Truly random numbers are no joke. I don't know what I'm doing or where to go from here. This was just my little idea implemented.

here are some results for anyone interested. I'm not saying anything about these results ... good, bad, ugly I have no idea. They are just a small example of "the results". I mean, the backbone of this system is the very Math.random() function that isn't all that damn random so... lol. I called random(), Int() and UInt() 100 times and the little label to the left of each result reflects which one was called for that line.
EDIT (new results):
I considered that my last results couldn't be compared to anything. Too many different infos and too little space. This time I ran just random, cut it off at the thousandths place and multiplied by 1000. This gives us a slew of random 0 to 999. Judging by these results I don't feel like its random enough. There isn't enough "less than one hundred" (there isn't any in this picture) and at least one number repeats ... right after its first self O.o . Truly random numbers are no joke. I don't know what I'm doing or where to go from here. This was just my little idea implemented.

Comment