Skip to content

Commit

Permalink
feat(review): specific nargin in randomBetween
Browse files Browse the repository at this point in the history
  • Loading branch information
ocehugo committed Nov 4, 2020
1 parent 982e100 commit 9ef5736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Util/Random/randomBetween.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
% author: hugo.oliveira@utas.edu.au
%

if nargin>3
if nargin==4
if contains(type,'int')
arr = randi([a b],1,n);
return
Expand All @@ -46,6 +46,7 @@
return
end
end

if nargin<3
n = 1;
end
Expand Down

0 comments on commit 9ef5736

Please sign in to comment.