473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Random Assignments

I am attempting to set up a staff rotation. Lets say I have anywhere
from 3 - 8 stations. I would like to randomly assign a name to a
station on a daily basis to assure faireness. Example:

Monday
Bill = 1
Jane = 2
Sue = 3
John = 4

Tuesday
Jane = 1
Sue = 2
John = 3

Any advise is most appreciated

May 18 '07 #1
1 1764
On 17 May 2007 18:16:59 -0700, my*******@hotmail.com wrote:

You could select a random record by opening a recordset on the Staff
table, and then moving (rs.Move) a random number between 0 and
RecordCount-1 away from the first record. See the Rnd function in Help
for an example of how to select the random number.

-Tom.

>I am attempting to set up a staff rotation. Lets say I have anywhere
from 3 - 8 stations. I would like to randomly assign a name to a
station on a daily basis to assure faireness. Example:

Monday
Bill = 1
Jane = 2
Sue = 3
John = 4

Tuesday
Jane = 1
Sue = 2
John = 3

Any advise is most appreciated
May 18 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1423
by: Jacek Generowicz | last post by:
I am dealing with an application which reads in configurations by calling (a wrapper around) execfile. Any configuration file may itself execfile other configuration files in the same manner. I...
6
573
by: Meyer von Landenhausen | last post by:
hi please take a look at the source: #include <ctime> #include <iostream> using namespace std; int main() { char buffer; int i,r,temp;
3
2103
by: bearophileHUGS | last post by:
The current version of ShedSkin (http://shedskin.sourceforge.net/ experimental Python to C++ compiler) is rather alpha, and the development work is focused on debugging and implementing some more...
21
1867
by: Paul Steckler | last post by:
Here's some code that's giving me differing results, depending on the compiler. typedef foo { int A,B; } FOO; int main() {
12
544
by: isaac2004 | last post by:
hi how would you go changing a random number generated into a item drawn from a database with SQL
8
1404
by: Fredrik Tolf | last post by:
Hi list! I'm relatively new to Python, and one thing I can't seem to get over is the lack of in-expression assignments, as present in many other languages. I'd really like to know how Python...
17
3422
by: Brian Blais | last post by:
Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the...
3
3059
by: Acolyte | last post by:
Preface: Yes, I know. I'm a noob. I'm currently in an Intro to Programming class at university. So, I'm betting everybody here can answer this question, and I'm gonna feel silly for not knowing the...
3
2423
by: 9966 | last post by:
Well previously I've asked a lot of question regarding Travelling Salesman Problem and I got a lot of helpful feedback from here. Thanks again for helping me. Now I've completed the full code....
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1544
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.