I know its not gibberish. It generates intelligible output.
Jaxson Rivera
Bump!
Someone must be able to understand at least a bit about it.
I know that rdrand64_step generates hardware random values.
I think eatPie takes a float and subtracts a portion of pi from it.
Aaron Jackson
...
Nolan Perry
...
Hunter Long
The first part of the main is calculating a histogram of random numbers, with the added wrinkle that for each step it generates two random numbers and only counts the larger of the two numbers in the histogram. I'm not sure why you would do this...maybe a test of the reliability of your random number generator?
I'm too lazy to walk through the eatPie function, but I'm pretty sure it has nothing to do with pi.
Levi Anderson
*smaller of the two numbers
William Allen
Oh yeah I think I remember what I was doing with it. I think it was meant to test probabilities. When you add two probability maps or something then you get a certain bias in the outcome and I wanted to see what that looked like with random data.
No idea why I wrote it in such a convoluted manner.
Thanks.
Hunter Howard
...
Christian Fisher
This. Needlessly difficult-to-read code and an obvious amateur trying to look sophisticated.
Jack Morris
>amateur trying to look sophisticated wtf bro.
It was some private code I put together to test what probability outcomes would look like.
When I wrote it I was just testing something so I knew what it was doing and didn't put any effort into layout/comprehension. I stumbled upon it just now and couldn't figure what it was about.
Brayden Hernandez
Here's one for you. Try to figure out how this code works.