Random number generation not generating random data unless maxValue
is specified or is implied from other options
#259
Labels
bug
Something isn't working
Expected Behavior
When you want to generate a random value for a field, you use the option
random=True
.Current Behavior
This currently only works if an upper bound (i.e max value) is specified for the column.
Upper bounds are implicitly calculated when using the
values
option, theuniqueValues
option also.The workaround in the current release is to always specify an upper bound using either the
maxValue
option, theuniqueValues
option or other options such asvalues
that implicitly compute an upper bound for the range of values produced.Steps to Reproduce (for bugs)
The following code works correctly generating random data on all columns marked as random except for
customer_id2
Context
Your Environment
dbldatagen
version used:The text was updated successfully, but these errors were encountered: