fix(lib): nextInt method