On Mon, Mar 07, 2005 at 06:18:53PM -0500, Vineet Joglekar wrote: > I want a function where I will be supplying a seed to that function > as an input, and will get a random number back. If same seed is used, > same number should be generated again.
Google for "Numerical recipes in C", it has a complete section about random numbers, including a couple of functions that do what you want. Erik -- +-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/