Search the web
Sign In
New User? Sign Up
z390-assembler-contest · z390 Mainframe Assembler Coding Contest
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ZMFACC Mainframe Assembler Coding Contest Update 03/28/08 #19 Soluti   Message List  
Reply | Forward Message #64 of 70 |
Re: [z390-assembler-contest] ZMFACC Mainframe Assembler Coding Contest Update 03/28/08 #19 Solution using TRTR and new #20

On Friday 28 Mar 2008 18:10, Don Higgins wrote:
> A new problem #20 has been posted to write integer random number generator
> and test program to determine the longest sequence without duplication that
> it produces for a given seed number.  The longest sequence of non-repeating
> pseudo-random numbers wins.

Non-repetition is not a very good test for a random number generator.
Eg start with a 64 bit seed and increment by one on each call.
Your test program will be running for a long time waiting for a repetition.

(To make the output look a bit more more "random": increment the seed
by a large number which is relatively prime to 2^64. It will still take 2^64
iterations to get a repetition.)

The USA National Institute of Standards and Technology has various
statistical tests for random number generators:
http://csrc.nist.gov/groups/ST/toolkit/rng/index.html

--
Martin

martin@... http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/



Wed Apr 9, 2008 1:29 pm

mward3484
Offline Offline
Send Email Send Email

Forward
Message #64 of 70 |
Expand Messages Author Sort by Date

All Congratulations to Werner Rams for solution to #19 using TRTR. Honorable mention also goes to Steve R.K. for sending email suggesting TRTR earlier the...
Don Higgins
dsh33782
Offline Send Email
Apr 9, 2008
1:04 pm

... Non-repetition is not a very good test for a random number generator. Eg start with a 64 bit seed and increment by one on each call. Your test program will...
Martin Ward
mward3484
Offline Send Email
Apr 9, 2008
1:34 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help