Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 573 Bytes

File metadata and controls

13 lines (11 loc) · 573 Bytes

What does it do?

-This program automatically randomises a class' seating arrangement.
-Each bench seats 2 students and the number of benches depend on the number of students.
-The list of all students in the class are provided in the code in the form of an array.

How does it work?

-A loop pick 2 random items from the students list and adds it to a sub list
-Each sub-list represents a bench.
-The sub-list is pushed into a larger list called "positions"

See this working