In reply to Kevin Lutz.

This sounds like a one-way table. Simulate from the null by using the Table distribution. Write all of the (10,000 or so) samples to a single SAS data set, where each sample is identified by the value of an ID indicator variable. Then call PROC FREQ with a BY ID statement and use the TESTP=(30 20 ... 10) option on the TABLES statement.