if rowcount = n then available indexes are 0 to n-1, this will throw an exception if rand picks n