i'm trying to give my units various aim stats at the start of the game, which directly influence their firing accuracy.
I'm trying to generate a random value, but i want the lowest number to be 30 and the highest possible number 90, because in my game 100 and they'd never miss, 0 and they'd never hit anything.
So i tried somthing like,
min(90,max(30,random(100)))
it seems to come up with the min and max values a lot though.