Looking to develop an application that efficiently assigns user tasks. The tasks begin simultaneously and each takes the same amount of time to complete. My goal is to create a round robin algorithm for task assignment in JavaScript or Dart programming languages. How can I go about implementing this logic?
For example:
var users = ["a","b","c"]
var tasks = 10
The assignment of tasks will be as follows:
"a" => "1","4","7","10"
"b" => "2","5","8"
"c" => "3","6","9"
What steps should I follow to create a function that determines which user is responsible for each task number?