Home > freetb4matlab > comm > randint.m

randint

PURPOSE ^

%

SYNOPSIS ^

function b = randint (n, m, range, seed)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{b} = } randint (@var{n})
% @deftypefnx {Function File} {@var{b} = } randint (@var{n},@var{m})
% @deftypefnx {Function File} {@var{b} = } randint (@var{n},@var{m},@var{range})
% @deftypefnx {Function File} {@var{b} = } randint (@var{n},@var{m},@var{range},@var{seed})
%
% Generate a matrix of random binary numbers. The size of the matrix is
% @var{n} rows by @var{m} columns. By default @var{m} is equal to @var{n}.
%
% The range in which the integers are generated will is determined by
% the variable @var{range}. If @var{range} is an integer, the value will
% lie in the range [0,@var{range}-1], or [@var{range}+1,0] if @var{range}
% is negative. If @var{range} contains two elements the intgers will lie 
% within these two elements, inclusive. By default @var{range} is 
% assumed to be [0:1].
%
% The variable @var{seed} allows the random number generator to be seeded
% with a fixed value. The initial seed will be restored when returning.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003