RandomTools Flavor: listlist - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Programming : Random Objects : RandomTools package : Flavors : RandomTools/flavor/listlist

RandomTools Flavor: listlist

describe a list of lists of random objects

 Calling Sequence listlist(flav, m, n)

Parameters

 flav - random flavor m - non-negative integer n - (optional) non-negative integer

Description

 • The flavor listlist describes a list of m lists, each with n entries, where each entry is described by the given random flavor flav. In the case where only m is given, n is assumed equal to m.
 This flavor can be used as an argument to RandomTools[Generate] or as part of a structured flavor.

Examples

 > $\mathrm{with}\left(\mathrm{RandomTools}\right):$
 > $\mathrm{Generate}\left(\mathrm{listlist}\left(\mathrm{integer}\left(\mathrm{range}=-10..10\right),3\right)\right)$
 $\left[\left[{4}{,}{2}{,}{-}{5}\right]{,}\left[{-}{9}{,}{1}{,}{-}{7}\right]{,}\left[{-}{5}{,}{-}{6}{,}{6}\right]\right]$ (1)
 > $\mathrm{Generate}\left(\mathrm{listlist}\left(\mathrm{rational}\left(\mathrm{denominator}=30\right),5,2\right)\right)$
 $\left[\left[\frac{{1}}{{3}}{,}\frac{{7}}{{30}}\right]{,}\left[{-}\frac{{2}}{{15}}{,}\frac{{29}}{{30}}\right]{,}\left[\frac{{2}}{{15}}{,}{-}\frac{{2}}{{5}}\right]{,}\left[\frac{{11}}{{15}}{,}\frac{{13}}{{15}}\right]{,}\left[\frac{{13}}{{30}}{,}{-}\frac{{11}}{{30}}\right]\right]$ (2)
 > $\mathrm{Generate}\left(\mathrm{listlist}\left(\mathrm{rational}\left(\mathrm{denominator}=30\right),2,5\right)\right)$
 $\left[\left[{-}\frac{{1}}{{6}}{,}{-}\frac{{2}}{{15}}{,}{-}\frac{{1}}{{30}}{,}{-}\frac{{1}}{{30}}{,}{-}\frac{{8}}{{15}}\right]{,}\left[\frac{{2}}{{3}}{,}\frac{{29}}{{30}}{,}\frac{{17}}{{30}}{,}{-}\frac{{11}}{{15}}{,}\frac{{2}}{{5}}\right]\right]$ (3)

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam