Hi all,
Can anyone tell me how exactly to build an array of numbers and randomize the numbers?
For a program Im writing I am allocating jobs to a number of 5 engineers, scheduled services of machinery in a beef production plant.
I have a list 9 weekly services to be done which I am corresponding to numbers (1,2,3,4 etc) then I have to randomize those numbers and alloacate them evenly out to 5 engineers. My college tutor says its like shuffling cards and handing them to 5 players in a card game which is true but that doesnt help me code it. Can anyone help?
Can anyone tell me how exactly to build an array of numbers and randomize the numbers?
For a program Im writing I am allocating jobs to a number of 5 engineers, scheduled services of machinery in a beef production plant.
I have a list 9 weekly services to be done which I am corresponding to numbers (1,2,3,4 etc) then I have to randomize those numbers and alloacate them evenly out to 5 engineers. My college tutor says its like shuffling cards and handing them to 5 players in a card game which is true but that doesnt help me code it. Can anyone help?