fixed random eqn generation