avatar: admin


¿Qué tipo de números se utilizan para el simulador de ruleta?

Números del Software Pseudo Random Number Generator (P-RNG).

Puedes utilizar números propios si usted duda de la P-RNG!

python documentation:
Almost all module functions depend on the basic function random(), which generates a random float uniformly in the semi-open range [0.0, 1.0). Python uses the Mersenne Twister as the core generator. It produces 53-bit precision floats and has a period of 2**19937-1. The underlying implementation in C is both fast and threadsafe. The Mersenne Twister is one of the most extensively tested random number generators in existence. However, being completely deterministic, it is not suitable for all purposes, and is completely unsuitable for cryptographic purposes.

Fuente: docs.python.org/2.6/library/random.html
Una permanencia de más de un millón de números en una página.

Report Post
Help Report Problem Contact
About us