SyntaxFix
Write A Post
Hire A Developer
Questions
Try to call randomize() before rand() to initialize random generator.
(look at: srand() — why call it only once?)