You don't have to declare the random(int num) function, it is already declared in stdlib.h<br>
Below is some code to help you pick your lotto #'s<br>
(Note: it's not bullet proof because it doesn't check to see if the same # is picked twice, but it is simple and should give you the right idea about using the random function.)<br>
<br>
#include <stdio.h><br>
#include <stdlib.h><br>
<br>
void main()<br>
{<br>
int x, YourNumber;<br>
<br>
randomize(); //initialize the random # generator<br>
printf ("Your 649 numbers are:\n\n");<br>
for ( x = 1; x < 7; x++) // count out 6 random #'s<br>
{<br>
YourNumber = random(48) + 1; //Get a # between 1 & 49<br>
printf( "%d: %d\n", x, YourNumber );<br>
}<br>
}