randomElement L
i1 : randomElement toList (0 .. 12) o1 = 11
In the near future, this will also be the behavior of random(List).
The object randomElement is a method function.
The source of this document is in /__w/M2/M2/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/functions/random-doc.m2:266:0.