Page 1 of 1
This was to good not to share
Posted: Sun Oct 17, 2010 3:22 pm
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>
Re: This was to good not to share
Posted: Thu Oct 20, 2011 4:28 am
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.
Re: This was to good not to share
Posted: Thu Dec 01, 2011 10:54 pm
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.
Re: This was to good not to share
Posted: Thu Dec 01, 2011 11:49 pm
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.