jeudi 28 janvier 2016

How to generate random numbers with specific interval between every random number

I am trying to generate 8 random numbers between range say for example 1 to 100. I am generating fine but I need to generate random numbers with specific difference between all the generated random numbers and both min max range values excluded. Say in 1 to 100 I have to generate numbers as 2,12,22,32,42,52,62,72. Is there anyway I can generate random numbers like this.

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire