joebudden Posted January 17, 2007 Share Posted January 17, 2007 Hi guys, Iv written a function which works out who wins a match between two teamsThe problem i am having now is generating random scorelinesIdeally i want to have a list of scores for each scenarioi.e ............[code]<?phpif($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 greatfullcheers Link to comment https://forums.phpfreaks.com/topic/34634-outputting-random-strings/ Share on other sites More sharing options...
trochia Posted January 17, 2007 Share Posted January 17, 2007 I suspect this ( the scores) are in a databse?...and all fileds are being populated? Then, manipulate that data... Link to comment https://forums.phpfreaks.com/topic/34634-outputting-random-strings/#findComment-163189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.