Solving the environment randomly