Search Results

Found 1 results for "73f36c1f4a95796da88c9ad7f0d12320" across all boards searching md5.

Anonymous /x/40767308#40769928
7/21/2025, 8:04:12 PM
I'm working on updating the program now

The biggest problem with randomly generating integers for lottery numbers is that lottery numbers are not bit perfect. If they were bit perfet, every lottery number were 6 or 7 bits would be valid. 1-63 and 1-127 are bit perfect. 63 is exactly 6 bits, and 127 is exactly 7 bits. And even though those numbers are valid, they are not always valid for the lottery. There's not many lotteries that will accept the number 127.

So the problem with lottery numbers that are not exactly 6 or 7 bits is there are left over bits. It inefficient and there's no bit reuse for validly generated bits. The method I've been using with my program is called rejection sampling.

So I'm working on implementing a new method of generating integers with quantum bits. Particularly the bit recycling method, and I'm considering to implement other generation methods as well.

My previous method with rejection sampling was much more simple. It just threw away results with integers that were greater than the max range of the lottery numbers. There was about a 33% rate of rejection. The number 120 is a 7 bit number, but it is not a valid number for the Mega Millions lottery.

But a quantum bit that gets generated in my mind, is valid. It shouldn't be thrown away. And there is a way to keep that bit without adding any bias to the randomness of the quantum generator. And it is more computationally efficient than rejection sampling.