Re: OT: Statistics of Random Numbers

2010-09-30 Thread Dan Covill
Joel: Most random number generators, including VFP's rand(), generate a real number between 0 and 1. Standard practice is to draw the number, then multiply by your range, then add the minimum allowable value. I.e., MyValue = MyRange * rand() + MyMinimum If you need to force the results into

Re: OT: Statistics of Random Numbers

2010-09-30 Thread Ed Leafe
On Sep 30, 2010, at 7:56 PM, Joel N. Fischoff wrote: > Here's the deal: I want to randomly generate a number between 3 and 10. Is > it more probable that I will get a higher number if I generate the number > directly (i.e. between one and ten, and ignoring if I get one or two), or > if I generate

OT: Statistics of Random Numbers

2010-09-30 Thread Joel N. Fischoff
Heya, I have an odd question (hence the 'OT') on the statistics of random number generation. I figure there's a good chance that there are people who have strong knowledge of/a degree in statistics here, which is why I'm asking. Here's the deal: I want to randomly generate a number between 3 and

Re: random numbers

2006-10-27 Thread Derek Kalweit
If the number is actually used, update the record with more fields. If the number is not actually used, delete the record. Thanks I guess I did not think of checking after locking the table only before. If you need a guaranteed-unique identifier and don't have the luxury of being able to acce

RE: random numbers

2006-10-26 Thread Judith Barer
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hal Kaplan Sent: Thursday, October 26, 2006 1:00 PM To: [EMAIL PROTECTED] Subject: RE: random numbers =>  => I have a requirement to assign the products in my database => an id # that is random

RE: random numbers

2006-10-26 Thread Hal Kaplan
=>  => I have a requirement to assign the products in my database => an id # that is random and has 9 alphanumeric characters. => Thank you Paul Mcnett for the code you posted =>  => on generating passwords. My question is if I am generating => these random numbers and

random numbers

2006-10-26 Thread Judith Barer
I have a requirement to assign the products in my database an id # that is random and has 9 alphanumeric characters. Thank you Paul Mcnett for the code you posted on generating passwords. My question is if I am generating these random numbers and then I have to check and see if this number is