changed random file pointer name.

random to randomf