How to make random sequence of one condition x times and another condition y times

Hi ,

thanks for the reply. Unfortunately your suggested sollution will not work for me since it would not lead to a completely random sequence of trials. Your suggestion would makes it much more likely for condition x (28 trials) to appear early in the sequence since they have a 0.5 chance of getting choosen each time.

Kind regards