Issue in getting expected randomized value

In reply to bharath123:

You should always test the result of a call to randomize().

And in the future when posting a question, it helps to say more than just it is “not working”.