/pseudo-rand

Problem: Randomly distribute fixed number of objects into fixed number of buckets. Each bucket should atleast have an object.

Primary LanguageC++MIT LicenseMIT

pseudo-rand
-----------

Problem: Randomly distribute fixed number of objects into fixed number of buckets. Each bucket should atleast have an object.

Solution Algorithm:

1) Put one object into each bucket.
2) For each remaining object put it into randomly selected bucket.