Forum Discussion

Lucamuraz's avatar
Lucamuraz
Copper Contributor
Jan 18, 2023

How to take in account frequancy with random selection

Hi I want select element from a list randomly but respecting some frequency value. So I have 5 element: A=(45, 12, 6, 2, 1) and the related frequency; B=(0.02, 0.08, 0.30, 0.35, 0.35) respectively. ...

Resources