Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
ASP.NET 2.0 / 3.5 / 4.0
Funzione random
martedì 08 settembre 2009 - 12.42
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
memmo77
Profilo
| Expert
683
messaggi | Data Invio:
mar 8 set 2009 - 12:42
Devo generare un numero random con decimali. Come faccio? Grazie
samar
Profilo
| Senior Member
310
messaggi | Data Invio:
mar 8 set 2009 - 12:49
Provato con:
Dim RandomNumber As Double
RandomNumber = RandomClass.NextDouble()
memmo77
Profilo
| Expert
683
messaggi | Data Invio:
mar 8 set 2009 - 12:54
Scusami non ho specificato, errore mio. Io ho ad esempio due numeri
10,2457889
15,248777
devo fare un random tra questi due. Grazie
samar
Profilo
| Senior Member
310
messaggi | Data Invio:
mar 8 set 2009 - 15:02
Dim RandomClass As New Random()
Dim RandomNumber As Double = 15.248777 - 10.2457889
RandomNumber = RandomClass.NextDouble() * RandomNumber
RandomNumber += 10.2457889
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !