Home | Trees | Index | Help |
|
---|
Package sulley :: Module primitives :: Class random_data |
|
object
--+ |base_primitive
--+ | random_data
Method Summary | |
---|---|
Generate a random chunk of data while maintaining a copy of the original. | |
Boolean |
Mutate the primitive value returning False on completion. |
Integer |
Calculate and return the total number of mutations for this individual primitive. |
Inherited from base_primitive | |
Integer |
Exhaust the possible mutations for this primitive. |
Nothing fancy on render, simply return the value. | |
Reset this primitive to the starting mutation state. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
value,
min_length,
max_length,
max_mutations=25,
fuzzable=True,
name=None)
Generate a random chunk of data while maintaining a copy of the
original. A random length range can be specified. For a static length,
set min/max length to be the same.
|
mutate(self)Mutate the primitive value returning False on completion.
|
num_mutations(self)Calculate and return the total number of mutations for this individual primitive.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jul 27 17:40:03 2007 | http://epydoc.sf.net |