# Random.seed!() doesn't work in Ubuntu machine for parallel running?

**URL:** <https://discourse.julialang.org/t/random-seed-doesnt-work-in-ubuntu-machine-for-parallel-running/41904>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 23, 2020, 1:02am UTC](https://discourse.julialang.org/t/random-seed-doesnt-work-in-ubuntu-machine-for-parallel-running/41904 "2020-06-23T01:02:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jing\_Zhang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jing_zhang/32/13737_2.png) [@Jing\_Zhang](https://discourse.julialang.org/u/Jing_Zhang)\
**Post date:** [June 23, 2020, 1:02am UTC](https://discourse.julialang.org/t/random-seed-doesnt-work-in-ubuntu-machine-for-parallel-running/41904/1 "2020-06-23T01:02:48Z")

</div>

I was doing parallel running using multi-cores. Codes are as below. I ran twice of the below codes and Mac gave me the same results. However, when I tried to run the same codes in a Ubuntu machine, different runs gave me different results. Could it because that Random.seed!() doesn’t work for Ubuntu machines?

```julia
@distributed for replicate_idx=1:1000
Random.seed!(replicate_idx) 
...
end 

```
