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
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
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
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
-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
=>
=> 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
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
7 matches
Mail list logo