Group: Forum Members
Posts: 43,
Visits: 76
|
I need to program script which will display random images (defined in the list element), I have three different images to display in random order (repeated 40 times). I know how to program up to this point. What I don't know is how to define list (or another part of the script) to select items randomly but in the way which provides me fixed proportion of items at the end of each trial - in other words I need to select items randomly from 3 items 40 times but at the end I need to have 20 displays of item #1, 10 of #2 and 10 of #3 (50%, 25% and 25%) I am aware of / itemprobabilities command but if I understand it correctly, it does not secure the proportion at the end - only the probability of selecting given item.
Is the "list" element proper for my goal?
|