How to have Random.Range include a specific Value.

Ok so I have a Prefab Text (UI).

The Text.text is Random between 1 and 10

I am going to have 3 of these prefabs in the scene but I need one of the prefabs, to have the string Application.loadedLevel.ToString()

I was able to find how to exclude numbers from a Random.Range but I can’t seem to figure this out.

I want to be able to just throw a bunch of these prefabs in a scene and make sure only 1 has the value Application.loadedLevel.ToString()

Thanks!

Seems like you don’t want real random or pseudo random for that. Simply spawn the prefab needed in the scene, and exclude that one index from the Random.Range() gist.