darkfreaks Posted October 13, 2009 Share Posted October 13, 2009 okay so i have a class im making it has everything setup i just need to randomize the 2 variables and return which variable that was randomized and output it. <?php class hit_chance { protected $character_miss,$character_attack; public function __construct($icharacter_miss,$icharacter_attack){ $this->character_miss =$icharacter_miss; $this->character_attack =$icharacter_attack; //randomize and output below } }?> Link to comment https://forums.phpfreaks.com/topic/177558-solved-oop-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.