You are on page 1of 1

https://blog.martincruz.me/2012/09/obtener-numeros-aleatorios-en-c-rand.

html

#include<iostream>

#include<stdlib.h>

using namespace sdt;

float x[100];

int i;

main()

for (i=0;i<=100;i++)

x[i]=rand();

cout<<"el vector aleatorio es: "<<x[i];

You might also like