# How to get reproducible results with DiffEqNoiseProcess.jl?

**URL:** <https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063>\
**Category:** Numerics\
**Tags:** question, diffeq, differentialequation\
**Created:** [May 9, 2024, 5:11pm UTC](https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063 "2024-05-09T17:11:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![homocomputeris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/homocomputeris/32/8933_2.png) [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Post date:** [May 9, 2024, 5:11pm UTC](https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063/1 "2024-05-09T17:11:38Z")

</div>

I have a process:

```julia
using DifferentialEquations
using Random

mu = 1
sigma = 1
gbm = GeometricBrownianMotionProcess(mu, sigma, 0.0, 10.0)
prob = NoiseProblem(gbm, (0.0, 10))
sol = solve(prob; dt=1.0)

```

How can I fix the seed and other PRNG parameters, so that I can get the same trajectory for fixed mu, sigma and timespan every time I solve the problem?

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 10, 2024, 9:59pm UTC](https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063/2 "2024-05-10T21:59:17Z")

</div>

```julia
prob = NoiseProblem(gbm, (0.0, 10),seed=1)
sol = solve(prob; dt=1.0)

```
