[R] runif with condition
Carl Witthoft
carl at witthoft.com
Tue Jan 10 01:19:19 CET 2012
This question *screams* for the standard response: "What is the problem
you are trying to solve?"
I can think of two related problems off the top of my head.
1) Write a function which generates the four bridge hands from a
well-shuffled deck.
2) Throw 100 pennies into a big "shaker" with four output ports of equal
size and see how many pennies end up in each port.
Each of these problems has "hidden" constraints. So far, since the OP
hasn't weighed in, we have no idea what his constraints are.
--
Sent from my Cray XK6
"Pendeo-navem mei anguillae plena est."
More information about the R-help
mailing list