Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //de 0 a 1, muestra de 100 numeros
- #include <stdlib.h>
- #include <time.h>
- int main(int argc, char** argv[])
- {
- float numero=0;
- int N=100,i;//100
- // N=(int)argv[1];
- srand (time (NULL));
- for(i=0;i<N;i++){
- numero = ((0-1)*((float)rand()/RAND_MAX))+1;
- printf(" %f \n",numero);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement