Various approaches and algorithms exist for generating non-colliding random numbers, including the popular Fischer/Knuth Yates algorithm. In this article, find out how you can generate non-Colliding pseudo-random numbers using a binary tree with PID (Process IDentifier) without any APIs. Join the DZone community and get the full member experience.

8m read time From dzone.com
Post cover image
Table of contents
Random NumbersNon-Colliding Unique Random Numbers With HashTableNon-Colliding Unique Random Numbers With Binary Tree PIDBinary Tree PID ApproachExample WalkthroughCycle TableAdvantagesUse CasesDisadvantages

Sort: