Random Value Help
#1

How can i do that the random amount multiply by 2
Код:
random(100000(500000))*2;
Код:
random(100000(500000)*2);
this both won't work
Reply
#2

Why not just double the digits urself instead as you have already defined the value anyways try this(Not sure if works):
pawn Код:
random(100000*2(500000));
Reply
#3

but the limit here will not let me do it 500000 is limit
Reply
#4

Still unsure about what values you actually expect from the random function ... Do you want values between 100k and 500k? Or what? You're very unclear.
Reply
#5

yeah between 100k-500k but i don't know how to set lowest
Reply
#6

pawn Код:
stock RandomEx(min, max) // By ******
{
    return random(max - min) + min;
}
and you can use it as:
pawn Код:
RandomEx(100000, 500000)
Reply
#7

thanks once more
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)