Two functions provide statistics: statlist and histogram.
 statlist returns in a record the basic statistics of a list (or an array of real) as shown below.
set a to {0, 1, 2, 3, 4, 5, 6}
statlist a
 {maximum:6.0, maximum index:7, minimum:0.0, minimum index:1, sum:21.0, mean:3.0, variance:4.0, stdev:2.0}
 histogram returns a list of two lists: the list of the sampled values, and the list of the numbers of occurrences.
set a to randomarray 100 range {0, 10}
set b to histogram a samples 5 minimum 0 maximum 10
b as list of real
 {{1.0, 3.0, etc.}, {23.0, 27.0, etc.}}
