out to file
made random state