remember and collect values/output
Hello, I am working with a function that involves random values. Thus, every time I run my code I get different values(in my case it is a set of values). When I get my output I want Sage to remember it and collect it every time I run my code. At the end I'd like to get a list of sets that has been accumulated every time I ran my code. Is there a way to do it?
I tried to research this topic and haven't found anything except saving a list to .txt file.
One can set the seed, maybe, to make the results reconstructible. For instance:
Now to the question, let us use a list that records the random numbers in between...
giving the list of the three values...
Which is now the question more exactly?! The used data can be of course stored in the one or the other way...
@dan_fulea, i am not sure about the user's intentions, but it might be that the computation is long so that when she finds something interesting, she wants to store it, to not only to be able to recompute it. Keeping the seed when doing randomized experiments is a good idea in any case.