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 number

where can i get the code to make a random number. it must be for 7 digits between 0 and 7. it must be efficient comented romantic and in c.

Parents
  • If you want truly random numbers, then you will have to take input from some truly random process; ie, some kind of physical process.

    There are very many possibilities, including some components specifically designed for this purpose (as "noise sources") - again, an internet search will bring you plenty of information on this very well worn topic...

Reply
  • If you want truly random numbers, then you will have to take input from some truly random process; ie, some kind of physical process.

    There are very many possibilities, including some components specifically designed for this purpose (as "noise sources") - again, an internet search will bring you plenty of information on this very well worn topic...

Children