64 570
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #649 in C# for Ram F

Question #649
I generated randomly 100 numbers (-20 - 20) and write them. How do I re-arrange them so positive numbers will be written down first, then zeros, and then negative numbers?
Expert's answer
First of all generate random form 0 up to 20 - that will give you positive numbers including zeros, after that create one more Random form -1 up to -20 - that will generate your negative numbers. You have to use two random generators.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
21.09.10, 11:26

What programming language are you using?

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions