Question. In TikZ, if using coordinates of the form (x,y)+(0.5*rand,0.5*rand), is it possible to recover the coordinates that were used to produce the pdf in the very last compilation one did?
- This seems to be a difficult problem. In principle, it should be possible to do this (the information is there), though it seems that one will have to have deep knowledge of the internals of how TikZ works. If I am not overlooking something easy (which I might very well be doing), then this is about somehow mapping a state of the finite-state-machine-that-is-the-machine-you-are-working-with to an explicit compilable TikZ code.
An example of what is meant by question is this: suppose you have written TikZ code, using randomized coordinates, using the 'rand' function, to simulate random geometric graphs, and suppose you wish to preserve a specific 'run' of your code. ('Preserve' in the sense of 'create explicit deterministic TikZ code which will ever recreate this particular pdf.) You are now facing the following situation: you have the pdf (which you could save, of course), yet (practically) no future run of your present code will reproduce this particular pdf. What can one do to get from this very state of the machine one is working with to an explicit TikZ code recreating this pdf?
I am aware that TikZ allows one to interact with the 'seeds' of the pseudo-random-number-generator used, and I am aware that the manual speaks about this. Yet I could not make this into a practical solution. The question is really: suppose you are staring at the 'run' that you would like to preserve (in the above sense). In principle, the information should be recoverable, but how?