M
Merrill & Michele
Many of us watched the World Series of Poker this last week and plotted how
we were to take over that world.
My current problem begins with shuffling the deck. For the apps I've
written before, I've always been satisfied with the usual:
#include <time.h>
#include <stdio.h>
int main( 2 things) {
time_t timer;
int tja;
srand(&timer);
tja=rand();
printf("%?", tja);
return(0);
}
The problem is that the time is always around 109 billion. This, in turn,
causes the generated pseudo-random to be around 23,000 with my
implementation. Even though I've been careful to slice up the 32768
outcomes of rand() in a reasoned way, the initial tilting has me wondering.
Two questions.
A) Do reasonable probabilists use rand(), given that you're not fooling
Gian Carlo Rota, but Chris Moneymaker?
B) If yes to A), then I think I'd want take that timer value, mask out the
things that don't change, maybe do a flip and an Xor, and then seed srand().
Does that sound like I'd then get values for the initial rand call with mu
around 16,000 and a bell curve?
we were to take over that world.
My current problem begins with shuffling the deck. For the apps I've
written before, I've always been satisfied with the usual:
#include <time.h>
#include <stdio.h>
int main( 2 things) {
time_t timer;
int tja;
srand(&timer);
tja=rand();
printf("%?", tja);
return(0);
}
The problem is that the time is always around 109 billion. This, in turn,
causes the generated pseudo-random to be around 23,000 with my
implementation. Even though I've been careful to slice up the 32768
outcomes of rand() in a reasoned way, the initial tilting has me wondering.
Two questions.
A) Do reasonable probabilists use rand(), given that you're not fooling
Gian Carlo Rota, but Chris Moneymaker?
B) If yes to A), then I think I'd want take that timer value, mask out the
things that don't change, maybe do a flip and an Xor, and then seed srand().
Does that sound like I'd then get values for the initial rand call with mu
around 16,000 and a bell curve?