0

Hello,

I want to write a program in C++ that approaches the number pi by using the Monte Carlo algorithm. Therefore I need random numbers. When the amount of random numbers goes to infinity, the probability will approach the theoretical propability, which is a function of pi.

I know all random numbers generated by the computer are in fact not random, but result from seeds. Time as seed isn't enough. It would require an algorithm too, to make the random numbers more random. Does anyone know about an algorithm which produces better random numbers? I know Matlab creates pretty good random numbers.

Greetz.