Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[FIX] Somewhat better "randomness" for birthdays

(We need the "group_level" queries to actually _group_ some data)
  • Loading branch information...
commit 989acdad6c95daff1438b7e587ed7673aca10461 1 parent 1a0f4fd
@karmi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Rakefile
View
2  Rakefile
@@ -61,7 +61,7 @@ task :populate do
occupation = %w{supermodel programmer designer}.rand
- birthday = Time.local(Time.now.year - rand(80), rand(12)+1, rand(31)+1).strftime("%Y/%m/%d")
+ birthday = Time.local(Time.now.year-20 - rand(20), [2, 5, 11].send(:rand), rand(31)+1).strftime("%Y/%m/%d")
groups = %w{family friends work}.random_slice
Please sign in to comment.
Something went wrong with that request. Please try again.