echo "create database testdb;" > test.sql
echo "use testdb;" >> test.sql
wget -nv https://raw.githubusercontent.com/kedarvj/mysql-random-data-generator/master/populate.sql
cat populate.sql >> test.sql
echo "create table mytable(text varchar(10), number float(10,2), mydate date);" >> test.sql
echo "call populate('testdb','mytable',100000,'n');" >> test.sql
echo "select count(*) from mytable;" >> test.sql
mysql < test.sql
Developed by
Kedar Vaijanapurkar
count(*)
100199
The problem appears where the number of records generated is > 999 and appears to grow as the number of records requested grows.