File generator now returns randomly generated path.