Answer the question
In order to leave comments, you need to log in
How to generate a random number sequence with non-uniform distribution?
Given the length of the sequence in the number of elements and some percentage that specifies the number of non - zero values in it.
It is necessary to generate a sequence of numbers so that non -zero values are randomly distributed throughout the sequence and the ratio of the number of non - zero elements to the number of all elements * 100% is approximately equal to the specified percentage.
In what direction to move?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question