1
0

Allow to repeat a day in the example data sets

This commit is contained in:
Tim Kächele 2024-08-25 10:23:38 +02:00
parent 0d6adf9001
commit 22ff5555a7

View File

@ -8,8 +8,9 @@ providers = ["MR", "LP"]
sizes = ["S", "M", "L"]
date = Date.today
day_repeat_count = ARGV[1].to_i
(ARGV[0].to_i).times do |i|
puts "#{(date + i).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
puts "#{(date + (i / day_repeat_count)).strftime("%Y-%m-%d")} #{sizes.sample} #{providers.sample}"
end