Given a set of consecutive numbers S1 i.e [1,2,3,4,5,6,7,8,...N1].Also a small set S2 of consecutive numbers i.e [1,2,3,4,5,6....N2]. N2<< N1
Now starting from first element i.e S2[i](i: 1 to N2) of set S2, you have to pick S2[i] consecutive RANDOM numbers from S1. Once you pick any number from S1,in any i(th) turn you can't pick it anymore in any other turn.
So my main goal is learn 'How To pick RANDOM numbers in such way'.This question is not part of any Coding Competition, or Homework. It is only for learning purpose.
If possible please use C language,as i am beginner in programming.