Mital Kakaiya [MCSD.NET]
In Programming, Logic is everything.

November 2005 Entries

True Random Number/String Generator

System.Random class SDK indicates that Pseudo-random numbers are chosen with equal probability from a finite set of numbers. The chosen numbers are not completely random because a definite mathematical algorithm is used to select them, but they are sufficiently random for practical purposes. The random number generation starts from a seed value. If the same seed is used repeatedly, the same series of numbers is generated. for(int index=0; index<10; index++) { int seed = (int) System.DateTime.Now.Ticks; ......