Sha256: 592290456bea6889697129c60124aeddeddfa4f0d89143badb84a40e15a5cf5b

Contents?: true

Size: 145 Bytes

Versions: 10

Compression:

Stored size: 145 Bytes

Contents

module RandomData
  
  module Booleans
    #Returns true or false randomly
    def boolean
      rand(2) == 1 ? true : false
    end
  end
  
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
jjulian-random_data-1.5.0 lib/random_data/booleans.rb
tomharris-random_data-1.5.1 lib/random_data/booleans.rb
random_data-1.6.0 lib/random_data/booleans.rb
random_data-1.5.2 lib/random_data/booleans.rb
malvestuto_random_data-1.5.2 lib/random_data/booleans.rb
malvestuto_random_data-1.5.1 lib/random_data/booleans.rb
random_data-1.5.1 lib/random_data/booleans.rb
random_data-1.3.0 lib/random_data/booleans.rb
random_data-1.5.0 lib/random_data/booleans.rb
random_data-1.3.1 lib/random_data/booleans.rb