The article discusses the method of random investment in the problem of risk management. An algorithm for calculating the optimal distribution for a limited sample is formulated. An example of calculating the optimal distribution is given.
Keywords: portfolio,profitability, risk, investment, sample