jeudi 24 août 2017

Random Class Rating System

I'm quite new to code so apologies for any stupid questions! So I have a list off 4 students (1,2,3,4), in one class- with 4 classes (a,b,c,d). Then I was going to randomly generate different classes like a with students (1,1,3,2) in class a. So I could rate this as a good class since (#class changes-1)**2 so (3-1)**2 = 4, however a bad one would be (1,2,3,4) since students are in lots of different classes (4-1)**2=9.

So I was wondering if there was a way to generate 4 random classes e.g. (1,1,1,1) (2,3,4,3) (4,4,2,3) (2,2,4,3) Then analyse how these solutions can be improved by scoring each trial then randomising it again.

Thank you for any comments or answers!




Aucun commentaire:

Enregistrer un commentaire