Jump to content

[SOLVED] PHP and percentages


bachx

Recommended Posts

Ok, I want to write a certain code, where that code would have a certain percentage of executing/not executing

 

 

For example, I want the following operation:

 

$x = $x + 1

 

To have a chance of 37% to execute, and 63% not to execute.

 

 

I hope I made myself clear. Thanks in Advance  :)

 

Link to comment
https://forums.phpfreaks.com/topic/40118-solved-php-and-percentages/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.