Вы не правы, если стоит задача обеспечить генерацию последовательности СЧ заданной разрядности (заранее неизвестной), о чем и спрашивал топикстартер, то важна именно случайность - только тогда можно получать последовательности чисел с разрядностью по выбору и с "хорошими" характеристиками. Если же комбинировать значения, выдаваемые генератором ГПСЧ, то характеристики процесса не будут в общем случае "хорошими" и тот же DIEHARD он скорее всего не пройдет.
RNG differs from PRNG in that it has a source of entropy (i.e. randomness independent of the generation algorithm used). In my example it is present - in this case it is a clock counter.
ГСЧ отличается от ГПСЧ наличием источника энтропии (т.е. случайности, не зависящей от используемого алгоритма генерации). В приведенном мной примере он присутствует - в данном случае это счетчик тактов.
I'm only talking, sorry, about what I linked to. And how to use it. :) It's not a PRNG, it's an RNG. :)
But in general, talk about nothing - any generator that does not use external sources is not a random number generator, but only pseudo. ANY ONE :)
Quite right, absolute randomness is a mathematical abstraction. There is only a degree of approximation to it, well, and a degree of awareness of the object.
gumgum, MathPow() is an extremely slow function. I recently posted a study. And here you have an integer degree, and it's a natural number. Write a clever emulator of natural to the natural degree.
I don't know how to create a dll. I'm downloading VS now, I'll figure it out and write. Just who has already created a dll it's not that difficult (I think so) if the sources are all available....
Я не умею создавать dll. Сейчас качаю VS, разберусь и напишу. Просто кто уже создавал dll это не так уж сложно(я так думаю) если исходники все имеются....
there is a recent article on the fifth forum on this subject, all for beginners with pictures and examples
Вы не правы, если стоит задача обеспечить генерацию последовательности СЧ заданной разрядности (заранее неизвестной), о чем и спрашивал топикстартер, то важна именно случайность - только тогда можно получать последовательности чисел с разрядностью по выбору и с "хорошими" характеристиками. Если же комбинировать значения, выдаваемые генератором ГПСЧ, то характеристики процесса не будут в общем случае "хорошими" и тот же DIEHARD он скорее всего не пройдет.
Did you see that it's not a PRNG, it's an RNG? :)
Вы видели что это не ГПСЧ, а именно ГСЧ? :)
RNG differs from PRNG in that it has a source of entropy (i.e. randomness independent of the generation algorithm used). In my example it is present - in this case it is a clock counter.
ГСЧ отличается от ГПСЧ наличием источника энтропии (т.е. случайности, не зависящей от используемого алгоритма генерации). В приведенном мной примере он присутствует - в данном случае это счетчик тактов.
I'm only talking, sorry, about what I linked to. And how to use it. :) It's not a PRNG, it's an RNG. :)
But in general, talk about nothing - any generator that does not use external sources is not a random number generator, but only pseudo. ANY ONE :)
gumgum, MathPow() is an extremely slow function. I recently posted a study. And here you have an integer degree, and it's a natural number. Write a clever emulator of natural to the natural degree.
1000000 numbers rstep=32 rsign=1 speed = 4.97700000
1000000 numbers rstep=32 rsign=1 speed = 2.44900000Может кто нибудь сделает dll например из Генерация случайных чисел? Спасибо.
and not on your own?
а самостоятельно нэ?
I don't know how to create a dll. I'm downloading VS now, I'll figure it out and write. Just who has already created a dll it's not that difficult (I think so) if the sources are all available....
Я не умею создавать dll. Сейчас качаю VS, разберусь и напишу. Просто кто уже создавал dll это не так уж сложно(я так думаю) если исходники все имеются....there is a recent article on the fifth forum on this subject, all for beginners with pictures and examples