3 ms·
Picking a random element from a stream
- javanix 15y agoHere's a link to the Stack Overflow question I found this from. Pretty cool algorithm! http://stackoverflow.com/questions/2532218/pick-random-property-from-a-javascript-object http://stackoverflow.com/questions/2532218/pick-random-prope...