Original Post
(C++)
When i run this program and cout the value, it displays only a.
(What i am trying to do is return four integers != to one another) Any help would be appreciated.
thanks
[edited by - MrPoopypants on December 6, 2002 8:20:03 PM]
int GenerateRandomOblio ( int a , int b , int c , int d )
{
srand ( time( 0 ) );
do
{
a = rand() % 9 + 1;
b = rand() % 9 + 1;
c = rand() % 9 + 1;
d = rand() % 9 + 1;
}
while( a != b && a != c && a != d && b != c && b != d && c != d );
return (a , b , c , d);
}