
Welcome Guest
|
#1
|
||||
|
||||
|
i want php to choose a random number between 0 and 4 (integer)and output to a variable
this is the code: <? $random_number = int rand(0, 4); print "$random_number"; ?> its quite simple for PHP 4 but i get a parse error whats the easiest way to do this? and what am i doing wrong? help please! |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| button to play random number +sound help | jinackman | Flash CS4 |
0 | 08-09-2009 09:32 AM |
| add random number of same movieclip | grebs | Flash CS3 / Flash 9 |
1 | 12-14-2008 05:28 PM |
| random number game | dragon blazer | Game Programming |
1 | 04-26-2006 04:26 AM |
| Random number every second? | ianripping | Actionscript 2.0 |
4 | 01-17-2005 05:43 PM |
| How to calculate a negative random number | midjdji | Flash 5 Actionscript |
15 | 10-21-2001 06:01 PM |

Other Programming



