This was to good not to share

Idea and code exchange. Porting and new development talk here!

Moderator: Mod Squad

Post Reply
Gardner Denver
Posts: 45
Joined: Mon Mar 23, 2009 8:37 pm
Location: Alabama
Contact:

This was to good not to share

Post by Gardner Denver »

So I do some posting on Yahoo! Answers under the programming and design section in my spare time. Here is a summary of this mornings question/answer message

Y! Answers Question: How can I write a program to do <whatever>
Me: What language are you going to use?
Y! Answers person: English
Me: <facepalm>
www.quest-ware.net
GreaterMUD & MajorMUD Utilities for users and sysops/mudops
http://www.gigamud.com
The NEW Megamud Project by Merlin (Author of MegaMUD)
http://www.greatermud.com
The Future of MajorMUD

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Re: This was to good not to share

Post by dspain »

Gardner Denver wrote:So I do some posting on Yahoo! Answers under the programming and design section in my spare time. Here is a summary of this mornings question/answer message

Y! Answers Question: How can I write a program to do <whatever>
Me: What language are you going to use?
Y! Answers person: English
Me: <facepalm>
hey you any good with c psuedo number generation? and i mean truew generation too, i can seed srand all day based on the seconds but if im generating say 5-6 numbers within the same seconds of the minute they replicate.

Gardner Denver
Posts: 45
Joined: Mon Mar 23, 2009 8:37 pm
Location: Alabama
Contact:

Re: This was to good not to share

Post by Gardner Denver »

dspain wrote: hey you any good with c psuedo number generation? and i mean truew generation too, i can seed srand all day based on the seconds but if im generating say 5-6 numbers within the same seconds of the minute they replicate.
Sorry for the delay in replying, things have been kind of hectic for me here. Normally when I need to do this I will create a timer and start the timer before I generate the first number. Then as part of my seed I will include the current value of the timer combined with the current date/time with a 5ms delay between number generation. That always provides me with a unique seed.
www.quest-ware.net
GreaterMUD & MajorMUD Utilities for users and sysops/mudops
http://www.gigamud.com
The NEW Megamud Project by Merlin (Author of MegaMUD)
http://www.greatermud.com
The Future of MajorMUD

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Re: This was to good not to share

Post by dspain »

Gardner Denver wrote:
dspain wrote: hey you any good with c psuedo number generation? and i mean truew generation too, i can seed srand all day based on the seconds but if im generating say 5-6 numbers within the same seconds of the minute they replicate.
Sorry for the delay in replying, things have been kind of hectic for me here. Normally when I need to do this I will create a timer and start the timer before I generate the first number. Then as part of my seed I will include the current value of the timer combined with the current date/time with a 5ms delay between number generation. That always provides me with a unique seed.
yeah my newest seems to have really good generation, thats pretty 'random'
before it was alot of lows and now enough mids or highs.

Post Reply