randint2

PURPOSE ^

Faster but restricted version of randint.

SYNOPSIS ^

function R = randint2( m, n, range )

DESCRIPTION ^

 Faster but restricted version of randint.

 Generate matrix of uniformly distributed random integers.  R = randint2(m,n,range)
 generates an m-by-n matrix of random integers between [range(1), range(2)].
 
 InPUTS
   m        - m rows
   n        - n cols
   range    - range of ints

 OUTPUTS
   R        - mxn matrix of integers

 EXAMPLE
   R = randint2( 2, 5, [0 1] )

 DATESTAMP
   19-Nov-2005  4:00pm

 See also RANDINT

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 03-May-2006 23:48:50 by m2html © 2003