randomNumbers | R Documentation |
Functions to return a either a vector or a matrix filled with random integers from 1 to maximum.
random(lengthOut, maximum) randomMatrix(numCol = 1, numRow = 1, maximum)
lengthOut |
the length of the vector required. |
maximum |
the largest possible random integer |
numCol, |
numRow the dimensions of the matrix required. Both default to 1. |
random returns a vector of random numbers, whilst randomMatrix returns a matrix of random numbers.
random(10,5) randomMatrix(3,6,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.