Hi everyone, total noob here. I hope don't miss anything, in that case i apologize.
I have this task: assign a random probability to a table of items.
For example: i have a table composed by 10 elements
Item 1
Item 2
Item 3
Item 4
..
Item 10
To each one i should assign a probability, aka, a number 1 to 100 whose sum of all assigned number should be equal to 100.
Example:
10% - Item 1
15% - Item 2
10% - Item 3
20% - Item 4
5% - Item 5
5% - Item 6
13% - Item 7
7% - Item 8
11% - Item 9
9% - Item 10
The number of item could be variable and the probability should be only integers >=1. Could you help me?
I have this task: assign a random probability to a table of items.
For example: i have a table composed by 10 elements
Item 1
Item 2
Item 3
Item 4
..
Item 10
To each one i should assign a probability, aka, a number 1 to 100 whose sum of all assigned number should be equal to 100.
Example:
10% - Item 1
15% - Item 2
10% - Item 3
20% - Item 4
5% - Item 5
5% - Item 6
13% - Item 7
7% - Item 8
11% - Item 9
9% - Item 10
The number of item could be variable and the probability should be only integers >=1. Could you help me?