added also matching algorithm based on random char generator