Improved the logic. Stabilzed..

Hash based randomizing...