working code! produces random sequences embedded with palindromes