Permalink
Browse files

[FIX] Somewhat better "randomness" for birthdays

(We need the "group_level" queries to actually _group_ some data)
  • Loading branch information...
1 parent 1a0f4fd commit 989acdad6c95daff1438b7e587ed7673aca10461 @karmi committed Sep 28, 2010
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

0 comments on commit 989acda

Please sign in to comment.