Revert "added logic to random generator"

This reverts commit 4e330b5c843b4bc3b4a0bb17b504f2c07e2436f9.