Fun with sometimes.rb – in .NET…

Sometimes.rb is a fun set of helpers that give you the ability to express a degree of fuzziness in your Ruby logic. A couple of examples from the docs:

15.percent_of_the_time do
  puts "Howdy, Don't forget to register!"  # be annoying, but only 15% of the time
(4..10).times do
  pick_nose  # between 4 and 10 boogers made, it's unpredictable!

Given ten minutes and a small Aberlour I thought I’d have a bash at emulating some of it in .NET just for fun:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.