Giving random questions.
#6

Quote:
Originally Posted by Peach
Посмотреть сообщение
I suggest you use this function with foreach.

PHP код:
stock randomEx(minnum cellminmaxnum cellmax)
{
    return 
random(maxnum minnum 1) + minnum;

I don't think that'll work because it will add or subtract the minnum and then will add it again with one point more, but I just want it to stay between 0-9.
Reply


Messages In This Thread
Giving random questions. - by Calabresi - 14.10.2012, 16:08
Re: Giving random questions. - by Calabresi - 26.10.2012, 10:22
Re: Giving random questions. - by Peach - 26.10.2012, 10:27
Re: Giving random questions. - by Calabresi - 26.10.2012, 10:32
Re: Giving random questions. - by Peach - 26.10.2012, 10:37
Re: Giving random questions. - by Calabresi - 26.10.2012, 10:41
Re: Giving random questions. - by Peach - 26.10.2012, 10:44
Re: Giving random questions. - by Calabresi - 26.10.2012, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)