updated random.rb and readme