Average allocation, average allocation in English

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.