Apologies, I meant the frequency of each S(i) or P(i).
It may be better to describe what I did in the following way:
I used a spreadsheet, and created a table, consisting of, say, 10,000 rows and 5 columns, of random numbers (using the spreadsheet's random number function). Then I added (or...