add a numeric integer field....
I prefer to use a small code block, something like
import numpy as np
def rand_int():
return np.random.randint(0, 10)
expression box --- > rand_int()
Now the above processes row by row, returning a random integer in the form of
"""
Return random integers from `low` (inclusive) to `high` (exclusive).
Return random integers from the "discrete uniform" distribution in the
"half-open" interval [`low`, `high`). If `high` is None (the default),
then results are from [0, `low`).
"""
>>> a = np.random.randint(0, 10, 1000000)
>>> b = a[a==5]
>>> len(b)
100247
>>>
which is pretty good, you get about 100,000 plus change (it will never exact) out of 1 million of the values equal to 5.