Generate data with random values from range or a list of valid values

I would like to generate a data with n rows filled with random values like age and gender columns.
Of course the age need to be taken randomly from a valid range like 18 to 90, and the gender value need to be male or female.

Could someone show me how I could get this result within Knime? Thanks.

~g

Hello Gujodm,

you are looking for the nodes contained in the KNIME Data Generation Plugin.
For a closer description as well as a paper please see https://www.knime.com/the-new-iris-data-modular-data-generators-0.

Cheers,

nemad

1 Like

Thank you @nemad,
so… with empty table creator + random label assigner nodes I can generate random value for gender.
But what about the age value? Is there a node for randomly generate a value for example from a range, like 18 to 90?

~g

Checkout the “Numerical” category under “Modular Data Generation”.
There are a bunch of nodes that allow you to add numeric columns that follow different distributions.

Best,

nemad

1 Like