What do you think the best way to generate a random DateTime in rails is? I am currently using the random_data gem to produce a random date, but it defaults all times at 12:00 AM. Here is an idea of what I'm trying to do (it's for a seeds.rb file). Also, maybe a random price within a certain range? I'm thinking I would need some sort of string manipulation but I'm new to rails and ruby so I'm still trying to wrap my head around all of it:
Foo.create(:name => Faker::Lorem.words, :description => Faker::Lorem.sentence, :price => 6.54, :start_date => Random.date, :location_id => 1 + rand(1),:user_id => rand(20) + 1 )