![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
The rand() function isn't truly random. I don't know why it isn't working, but I'll think about it and let you know if I come up with any ideas.
|
#2
|
|||
|
|||
![]()
I could be wrong but I think the issue is here:
Code:
// $numnew = new number // $curnum = current number // $max = upper limit (5 in this case) if (rand(1,2) == 1) { $numnew = ($curnum + rand(-1,1)); } if ($numnew == 0) { $numnew = $max; } if ($numnew > $max) { $numnew = 1; } Code:
if (rand(0,4) == 1) { |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any chance.. | lady jive | Questions and Supports | 3 | 03-29-2009 02:03 PM |
What's New? |
What's Hot? |
What's Popular? |