I have a Julia program that sometimes produces different results even if I set
Random.seed!(1234). What could be the reasons?
Here is one possible reason I have found: In my program, I’m using a function
c(x) from a package
C I installed. This function also could produce slightly different results (say, a difference of
10^(-8)) for the same input
x and the same
Random.seed!. What I did was something like the following:
using C Random.seed!(1234) @show c(x)
Is it because
Random.seed! can’t control the result of the function
c? Or is it due to some other numerical reasons?