L
L
lyova18052014-10-18 20:55:59
Mathcad
lyova1805, 2014-10-18 20:55:59

How to output 2 vectors filled with random numbers but fulfilling the conditions?

You need to output 2 vectors. Each has 12 elements. The sum of the elements of each vector is 1000. The numbers must be integers, lie in the range from 50 to 100. In this case, the corresponding element of vector A must not differ from the corresponding element of vector B by more or less than 2.5 times.
Need a code. Preferably in Mathcad.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question