how can i randomize a number 1000 through 10000
#1

Title says all how can i make a randomizer that will choose a number 1000 through 10000 i am attempting to create a bank account number generator.
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=109196

You want:

native MRandRange(min, max); // Get an integer in a specified range

right?
Reply
#3

Exactly do i have to download the whole include or is there a way to make it by yourself?

i don't really want to download a plugin for that.
Reply
#4

Then don't make it :3
Reply
#5

pawn Код:
stock minrand(min, max) //By Alex "******" Cole
{
    return random(max - min) + min;
}

//Use like..

new bankaccount;
bankaccount = minrand(1000,10000);
Reply
#6

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=109196

You want:

native MRandRange(min, max); // Get an integer in a specified range

right?
never mind i searched up some stuff and found a way but thanks anyway +1.

Quote:
Originally Posted by ChuckyBabe
Посмотреть сообщение
Then don't make it :3
that really wasn't needed if you don't have anything to post on topic then don't post at all will help you in the future.

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
pawn Код:
stock minrand(min, max) //By Alex "******" Cole
{
    return random(max - min) + min;
}

//Use like..

new bankaccount;
bankaccount = minrand(1000,10000);
Thanks but i found a way already +1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)