Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

In java, to meet the following requirements, what I should do? 1) Half the data is 0s, half 1s. 2) Half the data is 0s, half the remainder is 1s, half the reminder is 2s, and so forth. 3) Half the data is 0s, half random int values (can use nextInt() from Java’s Random package) 4) Each of these three techniques should be implemented as a static method that takes a integer representing the size of a dataset, and returns an integer array containing that number of elements generated with the corresponding rule. Randomize (shuffle) the contents of the array after you populate it.

In java, to meet the following requirements, what I should do?1) Half the data is 0s, half 1s.2)

Half the data is 0s, half the remainder is 1s, half the reminder is 2s, and so forth.

3) Half the data is 0s, half random int values (can use nextInt() from Java’s Random package)

4) Each of these three techniques should be implemented as a static method that takes a integer representing the size of a dataset, and returns an integer array containing that number of elements generated with the corresponding rule. Randomize (shuffle) the contents of the array after you populate it.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"