- (K, e1, e2) = random_icecream_params()[1:]
- L = random_lyapunov_like_icecream(K.dimension())
+ G = random_icecream_game()
+ L = random_lyapunov_like_icecream(G._K.dimension())
+
+ # Replace the totally-random ``L`` with random Lyapunov-like one.
+ G = SymmetricLinearGame(L, G._K, G._e1, G._e2)
+
+ while G._condition() > MAX_COND:
+ # Try again until the condition number is satisfactory.
+ G = random_icecream_game()
+ L = random_lyapunov_like_icecream(G._K.dimension())
+ G = SymmetricLinearGame(L, G._K, G._e1, G._e2)