Dear community,
I am trying to draw a random integer from an interval (a,b) but not c.
c obviously is inside the interval.
Specifically, I have a group of 20 individuals, and I selected an individual (say individual 5).
I need the function to randomly select a new individual in the group.
Thank you!
I am trying to draw a random integer from an interval (a,b) but not c.
c obviously is inside the interval.
Specifically, I have a group of 20 individuals, and I selected an individual (say individual 5).
I need the function to randomly select a new individual in the group.
Code:
gen player = . replace player = 1 if individual_counter == 5 replace player = 2 if individual_counter == runiformint(1,20) // and here I want to exclude the possibility of having 5 chosen
Thank you!
Comment