Class: Jfuzz::BooleanGenerator
- Defined in:
- lib/jfuzz/generators/boolean_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Generator
Constructor Details
This class inherits a constructor from Jfuzz::Generator
Class Method Details
.type ⇒ Object
12 13 14 |
# File 'lib/jfuzz/generators/boolean_generator.rb', line 12 def self.type "boolean" end |
Instance Method Details
#generate ⇒ Object
7 8 9 10 |
# File 'lib/jfuzz/generators/boolean_generator.rb', line 7 def generate return true if rand < Jfuzz.true_probability false end |