Search:

Type: Posts; User: Dedalus

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    4,523

    Hi I solved the error in the main and i wrote...

    Hi

    I solved the error in the main and i wrote srand after the main, now it works

    Thanks

    D
  2. Replies
    5
    Views
    4,523

    already done. I've tried to put srand in: ...

    already done.
    I've tried to put srand in:

    -the function my_rand()----->but i still get the same values
    -in the top of main but i get an error like:



    main.c:52: error: expected ‘)’ before...
  3. Replies
    5
    Views
    4,523

    In main_prog.c. Limit is an input value.

    In main_prog.c.

    Limit is an input value.
  4. Replies
    5
    Views
    4,523

    srand rand. return always the same value

    Hi

    I wrote a funct my_random(limit) that 'should' return a pseudor-random value between 0 and limit-1, then I have a small prog like:



    main_prog.c
    ..............
    int random_value;...
Results 1 to 4 of 4