Re: [fpc-pascal] Bug in RTL for arm

2006-03-06 Thread Koenraad Lelong
Koenraad Lelong schreef: Martin Schreiber schreef: On Sunday 19 February 2006 19.04, Koenraad Lelong wrote: Hi, Today I did an update via svn. When I compiled for arm (in the hope that the bug I encountered a while ago would have disappeared) I found a bug in rtl/linux/arm/sysnr.inc : Const

Re: [fpc-pascal] Re: Random numbers

2006-03-06 Thread Alain Michaud
Hi, I am not a mathematician myself, but I predict that unless you make extensive tests over a very long period of time you will never find any corelations! On Mon, 2006-03-06 at 13:39 +0100, Jonas Maebe wrote: > On 6 mrt 2006, at 13:37, Antal wrote: > > >> The Mersenne Twister Free Pascal

Re: [fpc-pascal] Re: Random numbers

2006-03-06 Thread Vinzent Hoefler
On Monday 06 March 2006 12:37, Antal wrote: > > The Mersenne Twister Free Pascal uses is one of the best PRNGs > > known today, it just has to be used the right way. But calling it > > from several threads and "randomly" overwriting its state array is > > definitely not the right way to use it. >

Re: [fpc-pascal] Re: Random numbers

2006-03-06 Thread Jonas Maebe
On 6 mrt 2006, at 13:39, Jonas Maebe wrote: And then you have to compare the random numbers generated in one such a program run, not between different runs. And note that even then you may get two times the same number after each other. There is nothing wrong with that though, since if tha

Re: [fpc-pascal] Re: Random numbers

2006-03-06 Thread Jonas Maebe
On 6 mrt 2006, at 13:37, Antal wrote: The Mersenne Twister Free Pascal uses is one of the best PRNGs known today, it just has to be used the right way. But calling it from several threads and "randomly" overwriting its state array is definitely not the right way to use it. I'm disappointed, be

[fpc-pascal] Re: Random numbers

2006-03-06 Thread Antal
|Random numbers should not be generated with a method chosen at random. | -- Donald E. Knuth |The generation of random numbers is too important to be left to chance. |-- Robert R. Coveyou, Oak Ridge National Laboratory, 1969 The Mersenne Twister Free Pascal uses is one of the best

Re: [fpc-pascal] Random numbers

2006-03-06 Thread miller
Quoting Vinzent Hoefler <[EMAIL PROTECTED]>: > The Mersenne Twister Free Pascal uses is one of the best PRNGs known > today, it just has to be used the right way. But calling it from > several threads and "randomly" overwriting its state array is > definitely not the right way to use it. Well

Re: [fpc-pascal] Random numbers

2006-03-06 Thread Graeme Geldenhuys
Why not use GUID's (or the other name is UUID's) and convert them to a Integer from Hex. You might need to make the GUID value smaller, or part of the GUID (example the last block). Regards, - Graeme - On 3/3/06, Antal <[EMAIL PROTECTED]> wrote: > > > > It's not just that, but randseed is n