hhhmmm... interesting...
It's been like a million years since I've had anything to do with chi-square. Here are some ideas...
Create a table (like Fubarable commented) or generate the values in the program and (either way) stuff the values in an array. Then randomly generate array indexes and get/pull the elements/values at those indexes.
Luck,
CJSL
__________________
Chris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
|