2012-10-31から1日間の記事一覧

サイコロ #8

C

ダイスを振りなおせる回数が2回以上の場合でも、 それがある程度までの回数であるなら似たようなコードになる。 dice3.c #include <stdio.h> #include <math.h> #include "dSFMT.h" #define MPT 5 /* point range per a dice throw: [0, MPT] */ #define NT 3 /* storable num</math.h></stdio.h>…