Message Boards Message Boards

0
|
3184 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Creating many dice rolls

Posted 10 years ago

If I want to create a diceroll from 1 to 6 I write

RandomInteger[{1, 6}] ;

How do a create an average number in decimalform from say 10^6 Rolls?

POSTED BY: peter B

This works:

Mean[RandomInteger[{1, 6}, 10^6]] // N

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract