I asked chatgpt "Can you show me an integer random number generator written in C?". The code as provided works, but the randInt() function reseeds the generator using time() on every call, which is not good. (time() only has second resolution.)