+1
I like this idea a lot. Simple, clever and easy to implement.
Paul
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Roger Harman
Sent: Wednesday, January 30, 2013 4:07 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Random selection of 10%
If you are scanning labels on the fly, what info is available? If order/invoice numbers are available, just pick a digit (changing it daily) and, if the last digit of the order/invoice matches, there's your audit package. Should be close enough to get 10%. Of course, there is a chance you pull two or more adjacent packages but so what?
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: Wednesday, January 30, 2013 1:36 PM
To: Midrange Systems Technical Discussion
Subject: Re: Random selection of 10%
You'll need a random number generator that returns a number based on "from"
and "to" parameters.
Do you know the total number of "cases" per day? Can you identify each one sequentially? Do you need to generate a list of case sequence numbers?
total_cases = 100;
inspect_cases = total_cases / 10;
for i = 1 to inspect_cases;
inspect_this = random(1:total_cases);
(store inspect_this somewhere)
endfor;
If your random() function ever returns a duplicate value, you'll need to discard it and decrement "i".
-Nathan
----- Original Message -----
From: Bill Reger <billr@xxxxxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Cc:
Sent: Wednesday, January 30, 2013 9:09 AM
Subject: Random selection of 10%
We would like to audit 10% of the Cases that flow down the shipping conveyor
- checking that the contents of the Case matched what was
(supposedly) packed.
Now obviously we could count each Case and pull every 10th Case for audit.
But it would not take long for someone to figure this out - and if they were so inclined - only short Cases other than the 10th in line.
Is there an algorithm/logic that we could employ to randomly pull Cases that would equate to 10% over the course of a day but not be every 10th Case? (My logic brain is on strike today and I can't think of a way to design
this.)
Bill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.