Generating Unique Random Numbers Integers Between 0 And X

    Table of contents

Generating unique random numbers (integers) between 0 and 'x'

Tags: javascript , random Answers: 1 | Viewed 105,542 times



I need to generate a set of unique (no duplicate) integers, and between 0 and a given number.


That is:


var limit = 10;
var amount = 3;

How can I use Javascript to generate 3 unique numbers between 1 and 10?


Some Answers For Generating Unique Random Numbers Integers Between 0 And X

Please leave your answer here: