mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

analysis/

mganrandom__define.pro


Pull random data from random.org.

Class description for mganrandom

Routines

Routines from mganrandom__define.pro

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 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 mganrandom::_convertData

result = mganrandom::_convertData(data, type=type, error=error)

Parameters

data

Keywords

type
error

top 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 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 mganrandom::getGaussians

result = mganrandom::getGaussians(n, mean=mean, stddev=stddev, error=error)

Parameters

n

Keywords

mean
stddev
error

top mganrandom::cleanup

mganrandom::cleanup

Free resources.

top mganrandom::init

result = mganrandom::init()

Creates a random number generator.

Return value

1 if success, 0 if failure

top mganrandom__define

mganrandom__define

Define instance variables.

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 97
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.