I was thinking of basically the same idea, but I think your idea is better as what is going on is clearer. Nice thanks!IF the underlying statistical properties of the built in PRNG are good enough for your application (and they may or may not be), then you can get pseudo-random numbers of any size you want just by concatenating repeated calls.
my15bitRand = rand();
my30bitRand = rand()<<15 + rand();
my45bitRand = (rand()<<15 + rand())<<15 + rand();
my60bitRand = ((rand()<<15 + rand())<<15 + rand())<<15 + rand();




