Discussion Locked

Random numbers and Tech Republic format

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anyone have practical formulas to generate 512 bit random numbers that will work in C or a similar language? I am interested in random and pseudo random number generation. Are there any web pages on the subject? Are there any books with good programming examples? Also are there any programming examples that determine if a generated random number is prime?
To csanosi, stuart.threlfall@newellandbudge.com, and shadowtraitor, I was trying to reject only one answer, not all yours, which are still being evaluated. Sorry for the inconvenience. I sent TechRepublic a message about it. If they do not restore the original question in several days, please post any answer (or comment) on this question so I can give you the points.

3 replies

by shadowtraitor

Its me again
I checked my algorithm and relised that for a 512 bit number that primality test would take extremely long. I found a primality test in the same publication I told you about before, however i do not fully understand the mathematical concept behind it but it is said that the method has a error rate of 25%. It's kinda complicated nd i think you should examine it, since i can not adequately explian it. Hope you get through with you problem

This discussion is closed to new replies.