Answer:
The assignment of students to locker numbers is an example of a function.
Explanation:
To determinate if the given example is a function, you have to use the definition which is:
A function is a relation where every element of the first set is associated to exactly one element of the second set.
Then, you have to see if the example satisfies the definition. In this case, the assignment of students to locker numbers.
The first set is the students and the second set is the locker numbers.
It's known that every student has one locker, therefore every element of that set is associated to exactly one locker number. In conclussion, it's a function.