Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to generate random number that will not be repeated?

$
0
0
I want to generate a random number several times, using the following function: for (var i: int = 0; i <4; i + +) {     randomPick = Random.Range (1,4); } But to each number only occur once. How to do it? Thanks in advance.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>