HP3000-L Archives

October 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Tue, 21 Oct 1997 12:24:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
jvaldes writes:
>        I'm writing a COBOL program that will select a random sample of
> employees.

Down-sizing or drug testing?

> Does anyone know of a random number generator function that
> will allow me to pick employees using employee id and date of birth?

I'd just extract them all into a list and use ordinary random numbers to
pick elements from the list.

> The selection should change from year to year.

Just save this year's list and check next year's selections against it
to eliminate duplicates.

G.

ATOM RSS1 RSS2