now initial states are chosen randomly