Tuesday, September 18, 2007

Anagram of string

Example:
Original String Anagarm
Eric Rice
Dormitory Dirty Room

strfry is the function which randomizes the content of the string using rand(3) to randomly swap characters in the string. The result is an anagram of the string.

** strfry in GNU C library only