Faker... how to nudge into specific directions

Hi guys

I see I can set it to a locale, bonus… Question though… can I specify a weight for values/inputs and have it at random select… driven by the weight.

for names… can I tell it to give me a female name…

Looking at the name gen it gives a name space surname so guess to just get the name I just substring up to space.

Busy playing with idea… to generate synthetic data, but trying to match to a demographic model.

One of the things I’d like to do is give it a list of values and then have it random select, but driven on a weighing for the input values. think generate 1 million people… spread across the USA, but have the distribution match the % of people per state as they are based on total us citezen count.

I see I can add a “custom” class… I have some specific type of generators that is not covered that I will need to do.

G

According to faker’s docs, the name() function doesn’t have a gender setting. You might need to use a different package for this.

any alternate suggestions.

suggestions that can be configured with locality would be a bonus.

G