Generate a file with random content.