import random, sets type RandGen*[T] = object minVal, maxVal: T KVPair* = ref object key*: string value*: string proc randGen*[T](minVal, maxVal: T): RandGen[T] = assert(minVal <= maxVal) result.minVal = minVal result.maxVal = maxVal proc getVal*[T](x: RandGen[T]): T = if x.minVal == x.maxVal: return x.minVal rand(x.minVal..x.maxVal) proc randString*(len: int): string = result = newString(len) for i in 0..