Average allocation, average allocation in English
Public void DisTaskTest () {List <DisTask> task = new List <DisTask> () {new DisTask {Name = "other 3 "}, new DisTask {Name = "other 1"}, new DisTask {Name = "other 2"}, new DisTask {Name = "other 4 "}, new DisTask {Name = "other 5"}, new DisTask {Name = "other 6"}, new DisTask {Name = "other 7 "}, new DisTask {Name = "Other 8"}, new DisTask {Name = "Other 9"}, new DisTask {Name = "other 10 "}, new DisTask {Name = "other 11" }}; int [] ids = {1, 2, 3}; int eachTotal = task. count/ids. length; int remainder = task. count % ids. length; int current = 0; for (int I = 0; I <ids. length; I ++) {for (int j = 0; j <eachTotal; j ++) {if (current = eachTotal * (I + 1) {break ;} task [current]. id = ids [I]; current ++ ;}} Random rand = new Random (); for (int I = 0; I <remainder; I ++) {int d = rand. next (0, ids. length); task [eachTotal * ids. length + I]. id = ids [d];} Console. writeLine (remainder); foreach (var I in task) {Console. writeLine (I. id + "," + I. name) ;}} public class DisTask {public int Id {get; set ;}public string Name {get; set ;}}
On-demand distribution and average distribution
"Distribution on demand, distribution on demand, distribution on demand, and distribution on demand if everyone wants" is the final idealization of communism. Such distribution is certainly good and can avoid waste of resources, however, the premise of its implementation is that it will be realized only when the real Communist society is reached.
"Average distribution: social wealth is shared by everyone, which is fairer than distribution by labor ." The average distribution is inappropriate in whatever type of society. The result of the average distribution will inevitably result in a "big pot" situation, severely cracking the enthusiasm of the people for production; compared with the average distribution, the distribution by work is more suitable for the development needs of the current society.
In fact, no matter which allocation, only suitable is the best. Distribution methods can actively promote social production only when they are in line with social development.
How to evenly distribute columns in each row in word
Select Table -- Right-click -- evenly distribute rows
Select Table -- Right-click -- evenly distribute Columns