How to generate 52 different random number??

Discussion in 'C++' started by Brian, Apr 8, 2006.

  1. Brian

    Brian Guest

    I hv a school assignment that is to generate 52 different random
    number, where all the numbers must >1 and <53. Pls help~

    Brian, Apr 8, 2006
    1. Advertisements

  2. Brian

    Heinz Ozwirk Guest

    What kind of numbers? Natural numbers, rational numbers odr real numbers?

    Heinz Ozwirk, Apr 8, 2006
    1. Advertisements

  3. Brian

    Brian Guest

    just real numbers
    Brian, Apr 8, 2006
  4. Brian

    osmium Guest

    Are you sure you are supposed to start with 2?

    Look up "shuffle" on Google.
    osmium, Apr 8, 2006
  5. Brian

    Tomás Guest

    Brian posted:
    Why not search google for C++ Lottery? might be of help too.

    Tomás, Apr 8, 2006
  6. Are you sure the assignment is limited to integral values?
    Victor Bazarov, Apr 8, 2006
  7. In fact, Brian has confirmed that real numbers are OK, too. It better
    since there are only 51 integers >1 and <53. Now, I'm betting that
    Brain hasn't yet figured out what "different real numbers" really

    Michiel Salters
    Michiel.Salters, Apr 10, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.