Update class.php

Removed random function