std-random-elt


Synopsis

(std-random-elt <list>)

Description

Returns a random element from a list.

Example

(std-random-elt '(0 1 2)) => 0 or 1 or 2

Arguments

list: any list (not proper lists also?)

Return Value

Returns a random element in the list. This may be of any type.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST