oh and randomF is a function used to generate a random number.
PHP Code:
private function randomF(lowVal:inthighVal:int):int //A function used to generate a random number
        
{
            if (
lowVal <= highVal)
            {
                return(
lowVal Math.floor(Math.random() * (highVal lowVal )));
            } else {
                throw(new 
Error("Fail. Wrong values passed to randomF"));
            }
        }