At first my new year wishes to all members.

My doubts are

1. How can i generate 10 random numbers from 1 to 10, But here the condition is the generated random numbers should be odds only and not evens or vice versa.

2. The srand() function uses a different seed value on every run, causing a different set of random values every run. According to this, the srand() function gets one different vlaue for each run. Can we can't get more than one values for srand() function for each run of program.

Thanks