add another method of calling random function