Docs @ Psychtoolbox Wiki : Randi

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Randi

PsychtoolboxPsychProbability

i=Randi(n,[dims])
Returns a random integer sample from 1:n. The optional second argument
may be used to specify the size of the returned array of independent
samples. E.g. randi(100,[3,3]) returns a 3x3 array of independent samples
drawn from the range 1:100. Also see RAND, RANDN, RandSample, Sample, and
Shuffle.

We assume that n is a positive integer, and rely on the fact that RAND
never returns 0 or 1.

Randi(n) is similar to David Brainard's Ranint(n).




Path   Retrieve current version of Randi.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychProbability/Randi.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0183 seconds