//hi
#include <stdlib.h>
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include<time.h>
void main()
{
int n, b;
n = 1 + random() % 200;
cout << n <<endl;
/*srand48(time(NULL));
printf("%.3f", drand48()); */
/*int random_number = random () % 200;
cout << random_number << endl;*/
getch();
}
Dit is wat ik nu probeer is zorgen dat er elke keer een ander ip adres uitkomt, maar dat lukt niet op 1 of andere manier er komt steeds 54 eruit
. Iemand enig idee wat ik verkeerd doe?
#include <stdlib.h>
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include<time.h>
void main()
{
int n, b;
n = 1 + random() % 200;
cout << n <<endl;
/*srand48(time(NULL));
printf("%.3f", drand48()); */
/*int random_number = random () % 200;
cout << random_number << endl;*/
getch();
}
Dit is wat ik nu probeer is zorgen dat er elke keer een ander ip adres uitkomt, maar dat lukt niet op 1 of andere manier er komt steeds 54 eruit