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