dice.simu {clttools} | R Documentation |

## Probability Distribution of Simulated Dice Rolling

### Description

Mean and probabilityf of flipping fair or loaded dice

### Usage

```
dice.simu(n, times, prob = NULL)
```

### Arguments

`n` |
number of trials in one simulation |

`times` |
number of simulations |

`prob` |
probability assigned to each possible outcome |

### Details

The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.

### Value

Mean value and corresponding probabilities for all simulated outcomes.

### Examples

```
dice.simu(n = 4, times = 1000)
dice.simu(4, 1000, prob = c(0.3, 0.1, 0.1, 0.1, 0.3, 0.1))
```

[Package

*clttools*version 1.3 Index]