Jump to content

[SOLVED] OOP help


darkfreaks

Recommended Posts

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

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.