import numpy as np np.random.seed(308) topics = np.random.permutation(56)+1 for i in range(56): print("Student", i+1, "- topic ", topics[i])
Standard input is empty
Student 1 - topic 2 Student 2 - topic 11 Student 3 - topic 5 Student 4 - topic 55 Student 5 - topic 18 Student 6 - topic 42 Student 7 - topic 53 Student 8 - topic 20 Student 9 - topic 49 Student 10 - topic 35 Student 11 - topic 50 Student 12 - topic 46 Student 13 - topic 12 Student 14 - topic 28 Student 15 - topic 26 Student 16 - topic 40 Student 17 - topic 19 Student 18 - topic 1 Student 19 - topic 31 Student 20 - topic 8 Student 21 - topic 36 Student 22 - topic 37 Student 23 - topic 48 Student 24 - topic 9 Student 25 - topic 23 Student 26 - topic 7 Student 27 - topic 51 Student 28 - topic 44 Student 29 - topic 10 Student 30 - topic 4 Student 31 - topic 24 Student 32 - topic 29 Student 33 - topic 54 Student 34 - topic 13 Student 35 - topic 39 Student 36 - topic 45 Student 37 - topic 14 Student 38 - topic 38 Student 39 - topic 22 Student 40 - topic 6 Student 41 - topic 15 Student 42 - topic 27 Student 43 - topic 21 Student 44 - topic 43 Student 45 - topic 17 Student 46 - topic 47 Student 47 - topic 33 Student 48 - topic 16 Student 49 - topic 52 Student 50 - topic 34 Student 51 - topic 25 Student 52 - topic 32 Student 53 - topic 41 Student 54 - topic 30 Student 55 - topic 3 Student 56 - topic 56