Can you pull the `RUBY_VERSION` conditional out into the class definition body and then define one of two versions of this method based on that?  That way, the `if RUBY_VERSION > 1.9.3` conditional is only evaluated once (when this file is loaded) rather than being evaluated every time a list is shuffled.