Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Solved: access: even distrabution of random numbers


(!)

draceplace's Avatar
draceplace   (Dan) draceplace is offline
Computer Specs
Member with 1,784 posts.
THREAD STARTER
 
Join Date: Jun 2001
Location: Conway, Arkansas
10-Jul-2012, 10:33 AM #1
Solved: access: even distrabution of random numbers
I want to evenly distribute work to 4 people (thousands of cases)
I use this:

Int((4-1+1)*Rnd([ID])+1)

where [ID] is a number from the record (like case or, actually any field will work) else you get the same number all the time (in Access query). Its called the ‘seed’.

My test distrabution looks like this:
Expr1 CountOfExpr1
1 72
2 69
3 57
4 86
284

Is there a way to even this up a little? The difference in 3 an 4 is 7% which could be huge over 1000's of records
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,526 posts.
 
Join Date: Mar 2005
Location: UK
10-Jul-2012, 12:32 PM #2
In that particular case what was the seed?
The distribution suggests it was restricted to around the 65 mark.
draceplace's Avatar
draceplace   (Dan) draceplace is offline
Computer Specs
Member with 1,784 posts.
THREAD STARTER
 
Join Date: Jun 2001
Location: Conway, Arkansas
10-Jul-2012, 01:26 PM #3
I pointed at the autonumber which was the ID in this case and was different for each record?
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,526 posts.
 
Join Date: Mar 2005
Location: UK
10-Jul-2012, 01:57 PM #4
The thing is they are Random number, so they shouldn't be even, only over a very long period.
So maybe you are asking too much of it.
It is interesting that the random works in a query like that maybe you can use that in place of the code that I provided.
__________________
OBP
I do not give up easily
draceplace's Avatar
draceplace   (Dan) draceplace is offline
Computer Specs
Member with 1,784 posts.
THREAD STARTER
 
Join Date: Jun 2001
Location: Conway, Arkansas
10-Jul-2012, 02:17 PM #5
Thanks for looking OBP. I didn't see the 'code' you provided??? I look at few post here before posting and didn't see my specif issue, so being a little lazy I started a thread.

I'm going run this on their cases to assign and see what happens when they present the data. Maybe it will even out as the number gets bigger. Or they can assign the biggest number to the best worker or something then reassign again later or something. I could simply pass the file in VBscript with a counter that resets after 4 but trying to keep it in the simple access box.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
access, random number, vba

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑