Raised This Month: $ Target: $400
 0% 

Quick Question: 50% Chance of something


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-20-2010 , 03:34   Re: Quick Question: 50% Chance of something
Reply With Quote #2

I would do
PHP Code:
if( random(2) ) //Random takes the Max-1, then finds a random no. between 0 and that number
{
      
//Hi! <-This would happen if it returned 1
} else { 
      
//Bye! <- This would happen if it returned 0


Last edited by RedRobster; 06-20-2010 at 03:37.
RedRobster is offline
 



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

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

Forum Jump


All times are GMT -4. The time now is 14:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode