Jump to content

outputting random strings


joebudden

Recommended Posts

Hi guys, Iv written a function which works out who wins a match between two teams

The problem i am having now is generating random scorelines

Ideally i want to have a list of scores for each scenario

i.e ............

[code]
<?php
if($team1 < $team2 & $difference > 10) // output a score from "2-0","3-1","4-2"

if($team1 < $team2 & $difference < 10) // output a score from "1-0","2-1","3-2"

?>
[/code]

and so on.....

Anyone know the best way to achieved this I would be very greatfull

cheers
Link to comment
https://forums.phpfreaks.com/topic/34634-outputting-random-strings/
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.