Generates a random datum and repeats it count times.
a random datum, repeated count times
the number of times to repeat the data
if data could not be generated