Method lfun::_random()


Method _random

mixed _random(function(int(0..):string(8bit)) random_string, function(mixed:mixed) random)

Description

Called by random(). Typical use is when the object implements a ADT, when a call to this lfun should return a random member of the ADT or range implied by the ADT.

Parameter random_string

A RandomInterface()->random_string function that returns a string(8bit) of the specified length.

Parameter random

A RandomInterface()->random function.

See also

random(), RandomInterface