Conditional generation? #1246
-
Hello! I'm generating random "product_id" (integers) from 1 to 1000, and for every product, I also want to generate a "sales_price", but I need the sales price to stay kind of constant between the same “product_id”. for example: I can’t have a large variance in “sales_price” between the same products in different rows. One more question, is there any function on the library that lets me implement a numeric value that follow a gaussian distribution or any other distribution? Is there any available example using custom providers? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We don't have such functionality out of the box, unfortunately. You can read about custom providers here: https://mimesis.name/en/master/getting_started.html#custom-providers |
Beta Was this translation helpful? Give feedback.
We don't have such functionality out of the box, unfortunately.
You can read about custom providers here: https://mimesis.name/en/master/getting_started.html#custom-providers