This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Random vaues

Hi all

how do load vars with random values ?

for example I need 3 random integers from 1 to 10 1 in each in each var .

What is the C code for declaring 3 integer variables loaded with a random integer for 1 to 10 each ?

Thanks
Elico

Parents
  • What kind of 'random' do you need?

    - 'True' random numbers (like readings of a Geiger counter)?
    - Pseudorandom? The latter can be cryptographically secure or not.
    - Fixed 'random' numbers (like the one in my first post)?

    All of the above are random numbers. But they are very different. Which one do you need? That's what is not clear.

Reply
  • What kind of 'random' do you need?

    - 'True' random numbers (like readings of a Geiger counter)?
    - Pseudorandom? The latter can be cryptographically secure or not.
    - Fixed 'random' numbers (like the one in my first post)?

    All of the above are random numbers. But they are very different. Which one do you need? That's what is not clear.

Children