My own experimental version of an interesting math question.
We were asked what would happen if ten people would receive 50 dollars each and after every cycle they would give one random person a dollar from their own stack.
The result is currently being spammed out in the console in a while(x > 0) loop where the X is set to 1000 (cycles).
Possible updates:
- Make a graphical interface to display the stack of dollars people have.
- Create a better randomizer function.
- Create a better sorting algorithm. (Currently using standard library).
- Implement settings. (Let the user choose how many cycles / people that should be created).
See link for the question which made me interested in the topic https://math.stackexchange.com/questions/2364118/100-people-with-100-dollars-each-give-1-dollar-to-a-random-other-person-whats