util::random_list_element (public)

 util::random_list_element list

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Returns a random element from the list.

Parameters:
list (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_acs_mail_lite_inbound_procs_check acs_mail_lite_inbound_procs_check (test acs-mail-lite) util::random_list_element util::random_list_element test_acs_mail_lite_inbound_procs_check->util::random_list_element

Testcases:
acs_mail_lite_inbound_procs_check
Source code:
    set len [llength $list]
    set idx [expr {int(rand() * $len)}]
    return [lindex $list $idx]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: