471,049 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

rolling dice

Let's say I have m dice having n sides, such that n^m is not going to bust
int as a datatype. With m=4 and n=6, an outcome might be {2, 5, 1, 2}.
What is a good way to represent this in c so that I can check cases by brute
force? EC
Sep 30 '06
101 5878
"Keith Thompson" <ks***@mib.orgwrote in message
"Bill Reid" <ho********@happyhealthy.netwrites:
>You seem to think that "special knowledge" is required
to separate the "men from the loons", and that may actually
be true in your case. In my case, since I am much more of
a "people person", I can spot them very quickly just based
on a few generalized behavioral cues...

Good for you. Congratulations. Whoop-de-doo. I am in awe of your

Now can you *please* go separate the men from the loons somewhere
else? We discuss C here.
I've noticed that "people people" usually tend to be very bad at human

Psychologists have a much higher divorce rate than physicists.
freeware games to download.
Oct 28 '06 #101

Rod Pemberton <do*********@bitfoad.cmmwrote in message
See how nice I am? Or, at least, how measured and controlled I'm
being when being called lair by an ignoramus.
Follow-ups set appropriately. Add the spelunking group if you
really think it's needed...

William Ernest Reid

Oct 28 '06 #102

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by lawentzel | last post: by
4 posts views Thread by dpp4669 | last post: by
17 posts views Thread by Jose Durazo | last post: by
2 posts views Thread by sunnydude | last post: by
2 posts views Thread by cowboyjeff05 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.