If rand() range too small, getting large samples results in infinite loop. This is a real concern, on many systems RAND_MAX is only 32767, so making a sample larger than that is impossible.
If rand() range too small, getting large samples results in infinite loop.
This is a real concern, on many systems RAND_MAX is only 32767, so
making a sample larger than that is impossible.

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