pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:2254:
} UNREACHABLE(); } /*! @decl mixed random(object o) *! If random is called with an object, @[lfun::_random] will be *! called in the object. *! *! @throws
-
*! Throws an exception if the object doesn't have a _
radnom
method.
+
*! Throws an exception if the object doesn't have a _
random
method.
*! *! @seealso *! @[lfun::_random()] */ PIKEFUN mixed random(object o) { int f = low_find_lfun(o->prog, LFUN__RANDOM); if (f < 0) Pike_error("Calling undefined lfun::%s.\n", lfun_names[LFUN__RANDOM]); struct object *co = Pike_fp->current_object;