JS-Like Generators

I would like to provide the JS equivalent of a generator function for a workflow in Kinme:

I am sampling the DNS values of a large number of websites (Alexa Top-1Million) and I don't want to hammer the same DNS servers over and over again.  I have a large list of DNS servers in a table and I would like to select the server from random on each query.

Do I need to actually pipe the server table into the Python function and randomly select from there or can I build a flow based variable?


Hi Zachary,

For this purpose you can use the row sampling node.
If you need it for one column only, you should first split this column form the rest of the dataset and compine them later on.

Hope that helps!