# Generating random integers (without repeats)

**URL:** <https://cl.desmos.com/t/generating-random-integers-without-repeats/329>\
**Category:** Questions\
**Created:** [December 6, 2018, 11:37pm UTC](https://cl.desmos.com/t/generating-random-integers-without-repeats/329 "2018-12-06T23:37:51Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [July 3, 2021, 7:07am UTC](https://cl.desmos.com/t/generating-random-integers-without-repeats/329/15 "2021-07-03T07:07:59Z")

</div>

Something like this, where you could define s\_eed in the CL:

```auto
L=unique( [1...1000].random(40,s_eed) )[1...10]

```

This would take the list [1…1000] and select 40 values (with replacement), reduce that list to only the unique values, and then select only elements 1-10. So 10 values “without” replacement.

---

_[View the full topic](https://cl.desmos.com/t/generating-random-integers-without-repeats/329)._
