Programming and Other Thoughts
Wednesday, September 17, 2014
Use srand only ONCE!
My program was having an odd behavior of not being very random when I called a function more than once. It turned out that I called srand every time that function was called. srand is only to be called once, so I moved it into my main function.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment