If you have no clue then it's going to be difficult to explain but you can use choose("1","2"..."10") to pick a random number and set a local variable to that value, then in a sub event check if variable is greater than 6, if so add 1 to a different variable. At the start of that event you would use a for loop or repeat to run it 3 times and if the second variable you're adding to = 3 then you can return that it passed.