Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 29th, 2008, 11:25 PM   #1
dimlyBright
Newbie
 
dimlyBright's Avatar
 
Join Date: Feb 2008
Posts: 10
Rep Power: 0 dimlyBright is on a distinguished road
Patterned returns with Math.random()

I hope I am doing this correct. I am having trouble with a little program I made. It generates lottery numbers in an unconventional way. It is random numbers but the main five numbers repeat exactly every eleventh line. What I mean is, if you give it a command line argument greater than 11 you will see the supposedly randomly generated lines begin to repeat themselves. It is completely bizarre. I suppose that if you want to comment on how bad my coding is you are free to do that as well. It will only help me code better in the future. Please, if anyone can help, it is like a splinter in my mind.
src.zip
dimlyBright is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with assignment code returns no answer backstabber C++ 9 Dec 21st, 2006 7:46 AM
Futurama Returns!!! Indigno Coder's Corner Lounge 27 Jul 22nd, 2006 2:48 PM
Stash returns... Malloc problem? Soulstorm C++ 18 May 27th, 2006 2:09 AM
Function that returns occurances of substring in string. conbrio C 7 Jul 1st, 2005 6:51 PM
Count lenght of list inside list, how to print returns dezza Python 5 Apr 5th, 2005 12:16 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:23 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC