Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
ArrayTools[RandomArray] - randomly generate scalars, Matrices, and Arrays of values drawn from a uniform or normal distribution
Calling Sequence
RandomArray();
RandomArray(distribution = uniform);
RandomArray(n);
RandomArray(n, distribution = uniform);
RandomArray(m, n);
RandomArray(m, n, distribution = uniform);
RandomArray(m, n, o, ...);
RandomArray(m, n, o, ..., distribution = uniform);
RandomArray(distribution = normal);
RandomArray(n, distribution = normal);
RandomArray(m, n, distribution = normal);
RandomArray(m, n, o, ..., distribution = normal);
Parameters
m, n, o, ...
-
length of each dimension
distribution = uniform, distribution = normal
type of a statistic distribution
Description
The RandomArray() and RandomArray(distribution = uniform) functions randomly generate a scalar value drawn from a uniform distribution on the unit interval.
The RandomArray(n) and RandomArray(n, distribution = uniform) functions randomly generate an n-by-n matrix of values derived as described above.
The RandomArray(m, n) and RandomArray(m, n, distribution = uniform) functions randomly generate an m-by-n matrix of the same.
The RandomArray(m, n, o, ...) and RandomArray(m, n, o, ..., distribution = uniform) functions randomly generate an m-by-n-by-o-by-... array of the same.
The RandomArray(distribution = normal) function randomly generates a scalar value drawn from a standard normal distribution.
The RandomArray(n, distribution = normal) function randomly generates an n-by-n matrix of values derived as described above.
The RandomArray(m, n, distribution = normal) function randomly generates an m-by-n matrix of the same.
The RandomArray(m, n, o, ..., distribution = normal) function randomly generates an m-by-n-by-o-by-... array of the same.
A negative entry for the length of a dimension is treated as zero.
This function is part of the ArrayTools package, so it can be used in the short form RandomArray(..) only after executing the command with(ArrayTools). However, it can always be accessed through the long form of the command by using ArrayTools[RandomArray](..).
Examples
See Also
ArrayTools[Size], rtable_indexing, Statistics[Sample]
Download Help Document