added the ability to choose the number of random words returned