[Tutor] Need help with random numbers

kevin parks kp87@lycos.com
Wed, 18 Jul 2001 08:28:03 +0900


>>uniform(a, b)

Are there other distributions? Or does anyone know how to filter uniform to get 1/f or brownian values?

like:

brown(size, low, hi, step)
	"""create a list of brownian values"""

size = size of the list
lo = lowerlimit of fill
hi = upper bound of fill
step = maximum interval size

pink(size, low, hi)
	"""create a list of 1/2 values from lo to high"""

size = size of the list
lo = lowerlimit of fill
hi = upper bound of fill

is something like what i imagine. Does such a thing exist? The random module is already quite cool, but having a few more noise generators and distributions would be really fun.

cheers,
kevin parks
seoul, korea

kp87@lycos.com







Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/