Random function in C generates only 3

31 replies · 6K views · last reply
sandy.bridge said:
It seems that it isn't returning the ith repeat.

You should still remove the first call to random(k) in your main() function.
It obfuscates the results.
 
Thanks! I had that out before but I must have opened the wrong one. Eventually I will get this random function down pat!