I\'m looking for a function in ANSI C that would randomize an array just like PHP\'s shuffle()
does. Is there such a function or do I have to write it on my own
There isn't a function in the C standard to randomize an array.
Ensuring a fair shuffle (where every permutation of the original order is equally likely) is simple, but not trivial.