analysis/
mganrandom__define.pro
includes main-level programPull random data from random.org.
Class description for mganrandom
Routines
result = mganrandom::_getData(urlString [, error=long])
Read from an URL (with error checking).
result = mganrandom::_convertData(data, type=type, error=error)
result = mganrandom::getSequence( [minimum=long] [, maximum=long] [, error=long])
Returns a permutation of the given range of integers.
result = mganrandom::getIntegers(n [, minimum=long] [, maximum=long] [, error=long])
Return the given number of random integers (with repetition).
result = mganrandom::getGaussians(n, mean=mean, stddev=stddev, error=error)
mganrandom::cleanup
Free resources.
result = mganrandom::init()
Creates a random number generator.
mganrandom__define
Define instance variables.
Routine details
top source mganrandom::_getData
result = mganrandom::_getData(urlString [, error=long])
Read from an URL (with error checking).
Return value
strarr
Parameters
- urlString in required type=string
complete URL to query
Keywords
- error out optional type=long
pass a named variable to get the response code: 0 for success, anything else indicates a failure
top source mganrandom::_convertData
result = mganrandom::_convertData(data, type=type, error=error)
Parameters
- data
Keywords
- type
- error
top source mganrandom::getSequence
result = mganrandom::getSequence( [minimum=long] [, maximum=long] [, error=long])
Returns a permutation of the given range of integers.
Return value
lonarr
Keywords
- minimum in optional type=long default=0
minimum value of returned integers
- maximum in optional type=long default=100
maximum value of returned integers
- error out optional type=long
pass a named variable to get the response code: 0 for success, anything else indicates a failure
top source mganrandom::getIntegers
result = mganrandom::getIntegers(n [, minimum=long] [, maximum=long] [, error=long])
Return the given number of random integers (with repetition).
Return value
lonarr
Parameters
- n in required type=long
number of random numbers to generate
Keywords
- minimum in optional type=long default=0
minimum value of returned integers
- maximum in optional type=long default=100
maximum value of returned integers
- error out optional type=long
pass a named variable to get the response code: 0 for success, anything else indicates a failure
top source mganrandom::getGaussians
result = mganrandom::getGaussians(n, mean=mean, stddev=stddev, error=error)
Parameters
- n
Keywords
- mean
- stddev
- error
File attributes
Modification date: | Tue Sep 13 17:17:33 2011 |
Lines: | 215 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.