I want it to give random numbers within 1 and 10.And it'll not give the same number twice. Laserlight told me to use shuffle on an array which contains the numbers from 1-10 . But I couldn't do the...
Type: Posts; User: Exorcist
I want it to give random numbers within 1 and 10.And it'll not give the same number twice. Laserlight told me to use shuffle on an array which contains the numbers from 1-10 . But I couldn't do the...
I understand what you mean by shuffle. But I couldn't do it. Actually the logic of shuffle isn't clear to me yet. In the previous thread of mine you told me to use swap. I did try but it didn't give...
Thats why I dont know how it works. So making a string array is the only solution for my problem in C?
Thanks to MK27 :) Its working fine and I understood how it works.
And sufoode I did not understand this line
But thanx everyone for helping me :)
I am learning C for some days and I am facing many problems.I have asked for random sorting before and I got some solutions from here but by that time I came up with this code.
I have been using...
Thanx. I have managed to solve the problem. Thanx a lot for your help everyone :)
I am doing an assignment where I am trying to get random numbers between 1-10.
But I dont want any number to come more than one time. I am using the following code.
#include <stdlib.h>...