RE: Random sampling in perl

2002-03-22 Thread Balint, Jess
I just typed the code in the e-mail. It was part of my program. Sorry. -Original Message- From: Wagner-David [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 4:16 PM To: 'Balint, Jess'; '[EMAIL PROTECTED]' Subject: RE: Random sampling in perl If the

RE: Random sampling in perl

2002-03-22 Thread Wagner-David
ubject: Re: Random sampling in perl Thanks for the input. The only trouble I would have with that is the file size. My files are HUGE. I don't think the admins around here would like me doing that. What I was thinking was to generate an array with a bunch of random numbers in numerical order. T

Re: Random sampling in perl

2002-03-22 Thread Balint, Jess
Thanks for the input. The only trouble I would have with that is the file size. My files are HUGE. I don't think the admins around here would like me doing that. What I was thinking was to generate an array with a bunch of random numbers in numerical order. Then run through the file and print only

Re: Random Sampling in Perl

2002-03-18 Thread John W. Krahn
Jess Balint wrote: > > Hello all, I have a file of 3,210,008 CSV records. I need to take a random > sample of this. I tried hacking something together a while ago, but it > seemed to repeat 65,536 different records. When I need a 5mil sample, this > creates a problem. > > Here is my old code: I

Re: Random Sampling in Perl

2002-03-18 Thread Jonathan E. Paton
> Hello all, I have a file of 3,210,008 CSV > records. I need to take a random sample of > this. I tried hacking something together a > while ago, but it seemed to repeat 65,536 > different records. When I need a 5mil > sample, this creates a problem. > > Here is my old code: I know the logic > a