Change dummy generator to accept number of items.