<?php class Numb { public $number; public function rdmNumber(int $number) { $myNumber = rand(-$number, $number); echo $myNumber . " - random number"; } }