function out1 = rands(in1,in2,in3,in4,in5,in6)
% BOILERPLATE_START
% This code is the same for all Weight/Bias Initialization Functions.
persistent INFO;
if isempty(INFO)
if nnet.test.flags('initWeightInfoTestFcns')
INFO = nnet.test.initWeightInfoTestFcns;
else
INFO = get_info;
end
end
if (nargin < 1), error(message('nnet:Args:NotEnough')); end
if ischar(in1)
%若in1为字符数组
switch lower(in1)
%将字符变为小写
case 'info', out1 = INFO;
case 'configure'
out1 = configure_weight(in2);
case 'initialize'
switch(upper(in3))
case {'IW'}
if INFO.initInputWeight
if in2.inputConnect(in4,in5)
out1 = initialize_input_weight(in2,in4,in5,in6);
else
out1 = [];
end