Thread: roll the dices in c

  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,823
    FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQF AQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQF AQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ FAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFA QFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQFAQ.

    To recap: FAQ.

  3. #3

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, 09: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, 01:32 PM
  4. image roll overs
    By Sekti in forum Tech Board
    Replies: 4
    Last Post: 09-26-2002, 10:57 AM
  5. Replies: 1
    Last Post: 09-03-2002, 09:17 PM