Creates a random string based on a variety of options, using supplied source of randomness.
If start and end are both 0
, start and end are set to ' '
and 'z'
,
the ASCII printable characters, will be used, unless letters and numbers are both false
,
in which case, start and end are set to 0
and Integer.MAX_VALUE
.
If set is not null
, characters between start and end are chosen.
This method accepts a user-supplied
Random instance to use as a source of randomness. By seeding a
single
Random instance with a fixed seed and using it for each call, the same random sequence of strings
can be generated repeatedly and predictably.