Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I see an error by the using rnd function in the cycle of Mathcad Prime - see attach. In Mathcad 15 all is OK!
See the picture and Mathcad 12 and Prime 2.0 files.
Your picture (for Mathcad Prime) has the word Dice twice rather than Dice1 and Dice2 However, even correcting this the result you show still stands.
If you replace 1+floor(rnd(6)) by ceil(rnd(6)) you get essentially the same result as for M15, suggesting the problem is with the floor function rather than with rnd.
Alan
Tahks, Alan!
You see the error too!
1+floor(rnd(6))
ceil(rnd(6))
works correct too.
But
1+floor(rnd(6))
1+floor(rnd(6))
not.
I have sent the message with this error to Mona!
Here are two versions that use floor(rnd(6)) twice and do work! The second example suggests things go astray when adding 1 to the random integers!!!!
Alan
Uh-oh! Weirder still!!
Alan
It was a preprogram of this program - http://communities.ptc.com/message/184194
See too ne picture: