Randomize address equal to 2 to the power of values

In reply to puttasatish:

Hi Satish,

How to achieve power of 3 scenario ?

Regards,