https://www.codecademy.com/courses/introduction-to-javascript/projects/school-catalog

I did this for task #7:

```
static pickSubstituteTeacher(substituteTeachers) {
substituteTeachers = [];
const randNum = Math.floor(Math.random() * (substituteTeachers.length - 1));
return substituteTeachers[randNum];
}
```

But I was wondering if it’s wrong because in the video walkthrough, they did:

```
static pickSubstituteTeacher(substituteTeachers) {
const randNum = Math.floor(Math.random() * substituteTeachers.length);
return substituteTeachers[randNum];
}
```

which doesn’t have the `substituteTeachers = [];`

part or the `.length - 1`

part.