Data Random comprese fra x a y

Oggi leggendo in forum ho trovato una domanda che ha stuzziacato la mia fantasia,la domanda era come ottenere una data random compresa in un intervallo di date.Seguendo il suggerimento del grande Raffaele Rinaldi ho implementato una classe RandomEx derivata da System.Random che ne estende le funzionalità aggiungendo il metodo NextDateTime.

L'esempio è reperibile qui.

Ciao a tutti Giuseppe

Print | posted on sabato 30 aprile 2005 16.54

Comments on this post

# re: Data Random comprese fra x a y

Requesting Gravatar...
Questo direi che non è OT, magari era interessante metterlo sul main feed
Left by Simone Chiaretta on apr 30, 2005 7.10

Your comment:

 (will show your gravatar)
 
Please add 6 and 5 and type the answer here: