# Unity 5 + c# Load random scene from List without repeat this

**URL:** https://discussions.unity.com/t/unity-5-c-load-random-scene-from-list-without-repeat-this/640295
**Category:** C# & .NET
**Tags:** Scripting
**Created:** [September 18, 2016, 8:24pm UTC](https://discussions.unity.com/t/unity-5-c-load-random-scene-from-list-without-repeat-this/640295 "2016-09-18T20:24:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sisco1980](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Sisco1980](https://discussions.unity.com/u/Sisco1980)
#### Post date: [September 18, 2016, 8:24pm UTC](https://discussions.unity.com/t/unity-5-c-load-random-scene-from-list-without-repeat-this/640295/1 "2016-09-18T20:24:42Z")

</div>

5

---

<div class="post-metadata">

### Author: ![Kiwasi](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/kiwasi/32/351502_2.png) [@Kiwasi](https://discussions.unity.com/u/Kiwasi)
#### Post date: [September 18, 2016, 9:12pm UTC](https://discussions.unity.com/t/unity-5-c-load-random-scene-from-list-without-repeat-this/640295/2 "2016-09-18T21:12:44Z")

</div>

Easiest way to prevent repeating is to simply remove the items from the list once they have been picked. Performance costs will be trivial with a list of 20 items.

If you had a thousand items and were choosing 5 I would suggest simply repeating your pick until you had 5 unique ones.

If you had a thousand items and were choosing 600 I would suggest shuffling the list and then picking the first 600 on the list.
