modifying labs

I teach Swift coding to high school students. I would like to be able to assign the various labs in the Fundamentals curriculum where I reduce the opportunities for cheating. Students will share images of the coding answers with each other or they can go on the internet to see the answers.

I would like individualize the labs for each student.

For example: When they have an assignment where the directions require a longitude property to be set to 50.001. Then changed to another number.

I would like to automatically generate slightly different numbers in the lab (a different number for each student) and then save this new lab in the intended student's name. Is that possible? Is it easy to do?

Harold Peaden