Darkmatters, first state your problem propperly (eg, using physics, using just a normal model with random numbers etc) and in which part you cant progress, before asking people to write and test sourcecode for you.
or..dont make a dicegame if you cant even handle such trivial tasks.