Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 19th, 2024, 6:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: December 4th, 2007, 10:19 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
The attached IMP is a quick scripted version.


Put a name in the text box and hit enter--keep adding . You can hit the SELECT1 at any time and it will select one of the names in the list at random and show the name in the text input box.
Generating random numbers on small lists is not very good!


It could be extended to any number of names, but I only added 15 text boxes, so I set the limit to 15. The limit is the number of names you could fit on the screen.

Each time you add a name it is added to an array and a counter is incremented to keep track of the number of names. The count is used to generate the random number, so it always generates a random number 1 to n where n is the number of names in the list. This random number is then used to select the pupil name from the array and displays the name in the input box.

It would be easy to duplicate for a second or third group.

It isn't fully error trapped.

Sandy


You do not have the required permissions to view the files attached to this post.

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group