Help a Newb here!

Reply

Join Date: Oct 2009
Posts: 1
Reputation: raz0r is an unknown quantity at this point 
Solved Threads: 0
raz0r raz0r is offline Offline
Newbie Poster

Help a Newb here!

 
0
  #1
Oct 18th, 2009
Hi, new in PHP stuffs and coding


I have question,

I How do you add randomizing numbers for each reload the number fluctuates from the number i provide (ex. 1-10%) and also add microtime(like 0.3123213 or 1.32423)

Im really newb here at PHP
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 791
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 109
darkagn's Avatar
darkagn darkagn is offline Offline
Master Poster
 
0
  #2
Oct 18th, 2009
Hi raz0r and welcome to DanoWeb

Not sure exactly what you are trying to do, but the rand function will give you a random number. You can read more about the rand function here.

By microtime, do you mean time to the microsecond? If so, this can be achieved using the microtime function. Here is a link to its documentation.

Let us know if I am off base with what you were after. Good luck!
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC