Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
Hi I'am having probelms generating ramdon numbers can someone please help I will very much appriciate if someone would write a samll program on it in that was i can learn by decomposing the code and learn it for my self.
for(int i = 0; i<16; i++){ printf("%d\n", rand());}Or you can use a modulo for limiting output to a specified range.for(int i = 0; i<16; i++){ printf("%hhd\n", (char)(rand()%256));}