# set.seed

**URL:** <https://forum.mothur.org/t/set-seed/3517>\
**Category:** Feature requests\
**Created:** [May 18, 2018, 8:11pm UTC](https://forum.mothur.org/t/set-seed/3517 "2018-05-18T20:11:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbakker](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mbakker](https://forum.mothur.org/u/mbakker)\
**Post date:** [May 18, 2018, 8:11pm UTC](https://forum.mothur.org/t/set-seed/3517/1 "2018-05-18T20:11:50Z")

</div>

Is it possible to implement something like R’s set.seed(), and thereby get reproducibility at steps such as sub.sample()?

---

<div class="post-metadata">

**Author:** ![dwaite](https://avatars.discourse-cdn.com/v4/letter/d/ecccb3/32.png) [@dwaite](https://forum.mothur.org/u/dwaite)\
**Post date:** [May 20, 2018, 7:44pm UTC](https://forum.mothur.org/t/set-seed/3517/2 "2018-05-20T19:44:15Z")

</div>

[set.seed](https://www.mothur.org/wiki/Set.seed)

Mothur’ got it! :mrgreen:

---

<div class="post-metadata">

**Author:** ![mbakker](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mbakker](https://forum.mothur.org/u/mbakker)\
**Post date:** [May 21, 2018, 9:53pm UTC](https://forum.mothur.org/t/set-seed/3517/3 "2018-05-21T21:53:30Z")

</div>

Thanks! I missed that, somehow.
