I understand that i don’t have to set se seed if i want a random number every time (in the command line) … this is clear, ok, but I really do not understand why running in the juno REPL i get the same strings every time … what i am doing wrong?
Version is the same in windows command line and in JUNE:
julia> VERSION
v"1.3.0"
julia>
I am porting my contextual search engine in Julia … and i need to generate every time a unique string, to collect many output file i have all toghether (es: rt83JX2_file1.txt, rt83JX2_file2.txt, … , rt83JX2_file100.txt ). But i have notice that, running in Juno, i always get the same random strings …
Ah, i found this: if i stop, in Juno, the julia engine and run again , the first string change. Ok, the others must not change, because of the seed, ok, i undestand, corrects.
So, i have to restart engine in juno… or perhaps, i have to pass to the seed something like the current time?
This could help to generate always different string from juno … without restarting the Julia engine.
Ahh … i have undestood … because i am in “Python running module mentality” … instead, Juno do not reset workspace if i run again … so it is sufficient to not set the seed …
Ok, thanks @Tamas_Papp