segunda-feira, junho 26, 2006

VB.NET: Random Numbers

Sample:

Randomize()
intRandomPos = Rnd(1) * 10

This will return Numbers from 0 to 1 and multiply by 10

Resume:

Gives numbers from 0 to 10

Sem comentários: