In a small application written in C/C++, I am facing a problem with the rand function and maybe the seed :
rand
I want to produce a sequence of random numbers th
use pow(2,rand()) it will give the answers in order of desired magnitude!!
pow(2,rand())