/RandomNumberSelection

Randomly select a number with same probability from a stream whose size is unknown

A small project to realize an algorithm: First element, 1/1 percent to hold this element, second element 1/2 to replace the first, third element 1/3 to replace, and so on