Your link is unavailabe..
When clicked it tells to ask permission.
But what we have here is a picking problem.
If you want to select two random instances of hydrogen it would be as easy as
repeat two times
pick random instance of hydrogen.
energy on collision with oxygen
- (subevent) repeat two times
-- system pick random instance of hydrogen