I am intending to use NestWhile in finding a solution with random real values as parameter.
NestWhile[{b2, b3, k1, d2, d3, k2, g2, k3} = RandomReal[2, 8],
RR1 = Solve[{F11 == 0 && F12 == 0 && F13 == 0 && F21 == 0 &&
F22 == 0 && F23 == 0 && F31 == 0 && F32 == 0 && F33 == 0}, {a0,
a1, b1, c0, c1, d1, f0, f1, g1}],
Element[{a0 /. RR1[[1]]}, Reals] == False &, 1, 5]
However, when I test my code (at most 5 iterations), I found that each iteration has the same random real values.
I was wondering that how can I modify the code such that I can get the different random real values for different iteration within the NestWhile loop.
Thanks for your help in advance!
While
loop. Doing assignments to global state inside functional constructs is dodgy. Try this pastebin.com/UGSCdUzY - it should be close to what you need. $\endgroup$