0

Write a function named walkingMan() that simulates a person walking a specified distance, taking steps

of varying length. The length of the steps varies at random within a specified range. (Use the function in

the Python random module, random.randint(a, b), which returns a random integer N such that a <= N <=

b.)

Input:

Parameter 1: minStep, an integer >= 0 that is the minimum length of a single step

Parameter 2: maxStep, an integer > 0 that is the maximum length of a single step

Parameter 3: distance, an integer > 0 that is the total distance to be walked

Return

An integer that is the number of steps taken to walk the specified distance

For example:

```
>>> print(randomSteps(2, 5, 1000))
>>> 281
```

I am not sure how to do this but I do know that a while loop will be used somewhere:

`def walkingMan(minStep, maxStep, distance)`