random states for coders