Off by one error. rand()%cnt can be zero, so just like the BATsample case, we need to add one to the value.
Off by one error.
rand()%cnt can be zero, so just like the BATsample case, we need to
add one to the value.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb