roll the dices in c

This is a discussion on roll the dices in c within the C Programming forums, part of the General Programming Boards category; hi there i am currently programming a simple dice game in c and i am using win2k and djgpp (it ...

  1. #1
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    Arrow roll the dices in c

    hi there

    i am currently programming a simple dice game in c and i am using win2k and djgpp (it works *g*).

    my problem is: i am not really sure how the random function works or is there none in c?

    i want to roll two dices, every one with 6 sides (from 1 to 6). the random function must roll the two dices and print out something like "dices=dice1+dice2"...

    can someone help me? thanks in advance!

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQF AQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQF AQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ.

    To recap: FAQ.

  3. #3
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140
    oh - sorry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Roll on 18 wheels roll on
    By abachler in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 05-13-2009, 10:12 PM
  2. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  3. C++ dice roll need help
    By catdieselpow in forum C++ Programming
    Replies: 1
    Last Post: 10-07-2007, 02:32 PM
  4. image roll overs
    By Sekti in forum Tech Board
    Replies: 4
    Last Post: 09-26-2002, 11:57 AM
  5. Replies: 1
    Last Post: 09-03-2002, 10:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21