help please

Discussion in 'Programmer's Corner' started by Parker06, Oct 26, 2006.

  1. Parker06

    Thread Starter New Member

    Oct 26, 2006
    4
    0
    How can u create a qbasic program that prints out 4 cards dealt randomly from a 52-card deck. help would be appreciated
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Hi,

    Assign numeric values to the 52 cards. Write a random number generator. Use the output of the random number generator to select cards.
     
  3. Parker06

    Thread Starter New Member

    Oct 26, 2006
    4
    0
    can anyone give me an example of how to do this
     
  4. pebe

    AAC Fanatic!

    Oct 11, 2004
    628
    3
    I've done a similar program to select six lottery numbers, that you could probably modify. It's too long to publish here but if you PM me with your email address, I'll send you the program.
     
  5. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    143
Loading...