PDA

View Full Version : Python , valori pseudocasuali


gabmac2
18-04-2015, 14:00
Qual' è il modo più veloce per generare n numeri pseudocasuali partendo da un valore iniziale (seme)?
Grazie in anticipo

ingframin
19-04-2015, 22:37
https://docs.python.org/3.4/library/random.html

Hai l'imbarazzo della scelta...

Se li vuoi di qualità migliore puoi usare os.urandom()
https://docs.python.org/3.4/library/os.html#os.urandom

gabmac2
20-04-2015, 11:35
rifornendo lo stesso seme si può rifare il test?

cdimauro
24-04-2015, 06:46
Certamente.

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.