uint DoRandomRange(uint max, int line, const char *file) { return GB(DoRandom(line, file), 0, 16) * max >> 16; }
uint32 DoRandomRange(uint32 limit, int line, const char *file) { return ((uint64)DoRandom(line, file) * (uint64)limit) >> 32; }
uint32 DoRandomRange(uint32 max, int line, const char *file) { return ((uint64)DoRandom(line, file) * (uint64)max) >> 32; }