07.12.2010, 14:54
Its not hard, just do it like this:
new rnd = random((MAX_VALUE - MIN_VALUE)) + MIN_VALUE;
or use this define:
#define randommin(%1, %2) random(%1 - %2) + %2
untested
new rnd = random((MAX_VALUE - MIN_VALUE)) + MIN_VALUE;
or use this define:
#define randommin(%1, %2) random(%1 - %2) + %2
untested