added random int to file writer template