How would one create a random integer between MIN and MAX?
This almost works if I could lop off the decimal portion, like python’s int() does.
@rand:(Random * (MAX - MIN) + 1)
for example where MAX = 5 and MIN = 1 would give me a random number between 1 and 5
But even this isn’t really right because it would only very rarely give me 5, only when Random() returned a 1.
Thanks
Tony
Edit:
I just found this thread from Marco that I think does what I am trying to do.
But I am still curious if a random int can be generated.