#include "iostream"
#include "stdlib.h"
#include "time.h"
#include "iostream"
using namespace std;
int main()
{
int randi,j;
srand(time(NULL));
cout << "IMPRESION DE RANDOM" << endl;
for (j=1;j<=15;j++)
{
randi=rand();
cout << randi << endl;
}
cout << "IMPRESION DE RANDOM ENTRE 100" << endl;
for (j=1;j<=15;j++)
{
randi=rand()/100;
cout << randi << endl;
}
cout << "IMPRESION DE RANDOM ENTRE 1000" << endl;
for (j=1;j<=15;j++)
{
randi=rand()/1000;
cout << randi << endl;
}
system("Pause");
return 0;
}
No hay comentarios.:
Publicar un comentario