Monday, April 7, 2008

Solution to Programming Quiz: Populating stream with unique random numbers

The generator and the consuming code is as below:


Reader is requested to provide comment if it feels that the above can be made more efficient and has better algorithm than what is shown here.




No comments: