probability_consecutive_rolls
Calculates the probability of rolling a specific value consecutively for a given number of rolls on a die with specified sides using the formula (1/num_sides)^num_rolls. Returns probability as a decimal between 0 and 1. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_rolls | No | integer, required, number of consecutive rolls (must be positive) | |
| num_sides | No | integer, required, number of sides on the die (must be positive) | |
| target_value | No | integer, required, the target value to roll (must be between 1 and num_sides) |