Created
September 12, 2015 05:24
-
-
Save AKB428/dbc520511e19130b8e2d to your computer and use it in GitHub Desktop.
create_dummy_posdata.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
(1..12).each do |i| | |
date = Date.new(2014, i, 1) | |
(1..10).each do |x| | |
shop_id = x | |
sales = 100000 * date.month * shop_id | |
puts sprintf("%d,%s,%d", shop_id, date, sales) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
10店舗の売上を12ヶ月ぶん出力