Permalink
Browse files

Switched to Array.shuffle for Ruby 1.8

  • Loading branch information...
1 parent 6d54699 commit 1067a6263e094832cb108177559c2f9155817250 @dhotson dhotson committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 asc.rb
View
2 asc.rb
@@ -269,7 +269,7 @@ def initialize x, y, width, background
@background = background
@period = rand(4) + 6
@window_width = @period - rand(2) - 1
- @color = (235..238).to_a.sample
+ @color = (235..238).to_a.shuffle.first # Ruby 1.8
@top_color = @color + 4
@left_color = @color + 2
end

0 comments on commit 1067a62

Please sign in to comment.