828KiB, 1114x1214, 1559589237126.png
No.10979527
This somewhat simple exercise is up on /g/ right now. It seems to present some difficulty for the average /g/ user. I have slightly rewritten it and present it for your amusement, you should certainly be able to solve this.

suppose you have a number generator that has the discrete uniform distribution on {0,1}

1. describe an algorithm for a number generator with the discrete uniform distribution on {0,1,2,3,4,5,6}

2. repeat (1) but your algorithm must terminate, or prove no such algorithm exists