percentage based output



Is there a function in PHP that allows me give the likelihood a
certain piece of text is outputted. Say I want one piece of text to
output to have a 60% chance of occurring and another piece of text to
have 40% of occurring on page load.

Much thanks.
.



Relevant Pages

  • Re: [PHP] PHP Performance and System Load
    ... General performance tip do not include more than 10 files a page load. ... Uses php Adodb ... At the moment I am trying to lower the number of filesystem calls as ... over a symlink placed in every webspace directory. ...
    (php.general)
  • Re: High Scores
    ... If you want to view High scores it returns Could Not load scores ... here is the PHP script ... Edit the game Flash file to point to this file on your server ... >> And the PHP script is here ...
    (alt.php)
  • Re: about structure.
    ... Of course if you want to use a load of checkboxes, it works too, just modify ... I thought about using a database... ... "I thought about using php... ... server needs to call upon php... ...
    (alt.php)
  • Re: [PHP] Re: can a session be used in a query?
    ... I've noticed that I somtimes have to get the page to load ... What I normally do is upload a blank php page with the same name as the one ... This one pulls all data regardless of user level: ... the query UserName = $UserName I get an undefined variable error... ...
    (php.general)
  • Re: Loading png images into a mysql table/database
    ... I have decided to use PHP and MySQL. ... I can load jpeg files into the table ... I do a select from the database, and then echo the image (with ... header(Content Type: image/jpeg) ...
    (comp.lang.php)