>>>try
>>>
>>>dim loRnd = new Random( DateTime.Now.Ticks.GetHashCode() );
>>>
>>
>>It is the same thing.
>
>sorry Michel, but
>
>var xx = new Random(DateTime.Now.Ticks.GetHashCode());
>
works perfectly here
>
>The Random constructor takes an int32 and .GetHashCode() returns an int32
>
>I don't understand it
>
>btw, what about making loRnd a static field ?
Hi,
See my post to Michel - VB only does checked cast.
But I agree using a static would be better....