LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 05-07-2002, 12:58 PM
ALGORYTHM's Avatar
ALGORYTHM ALGORYTHM is offline
Registered User
 
Join Date: Jan 2002
Location: LONDON UK
Posts: 18
Rep Power: 0
ALGORYTHM is on a distinguished road
Angry Random Number With Php

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!
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 07:27 PM.