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