Wednesday, April 25, 2012

What is the most efficient way to choose a random value in a stream?

What is the most efficient way to choose a random value in a stream? Given that each of them has a chance of occurring equally.



Thanks.





No comments:

Post a Comment