let repeat times test gen =
  for i = 1 to times do test (gen()) done