lundi 5 novembre 2018

KDB: How to make evenly distributed (as possible) selections from a list?

I am aware that in KDB, if you have a list like...

l:`apples`oranges`pears`

You can make N random selections like as follows:

9?l

But how do I evenly select each of the items in the list whenever possible?




Aucun commentaire:

Enregistrer un commentaire