Skip to content

Instantly share code, notes, and snippets.

@just3ws
Created June 13, 2013 16:12
Show Gist options
  • Save just3ws/5775012 to your computer and use it in GitHub Desktop.
Save just3ws/5775012 to your computer and use it in GitHub Desktop.
Give a random time within a window on the next calendar day.
1.day.from_now(Time.parse("#{Random.rand(1..5)}:#{Random.rand(0..59)}"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment