Hello
Bit operators is little hard for me, so i ask here:
This set random skin hue for humans
Utility.Random(1002, 57) | 0x8000;
and how can i get back int value from this, if i need number that corresponds with hues.mul (1002-1058)
thank you
The random function will return an int of 1002-1058 just as you need. It's my understanding that the" | 0x8000" would cap the int at 32,768 if it were to be a number larger than that. This clearly cannot happen with the range given in the Random function so that part of the code isn't really doing anything.