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