diff --git a/matlab/missing/stats/gamrnd.m b/matlab/missing/stats/gamrnd.m
index c4a77281dd5323873e5e05e34b1d19ed959ca6ab..f3021ec382ebf1f05ebdc18fd2bf1c42c5830130 100644
--- a/matlab/missing/stats/gamrnd.m
+++ b/matlab/missing/stats/gamrnd.m
@@ -210,7 +210,7 @@ end
 if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
     method = struct('small', 'Berman', 'large', 'Knuth');
     n = 1000000;
-    m = 1;
+    m = 3;
     a = 0.1;
     b = 1.0;
     try
@@ -287,7 +287,7 @@ end
 %@test:5
 if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
     method = struct('small', 'Best', 'large', 'Knuth');
-    n = 10000000;
+    n = 1000000;
     m = 1;
     a = 0.1;
     b = 1.0;
@@ -326,8 +326,8 @@ end
 %@test:6
 if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
     method = struct('small', 'Weibull-rejection', 'large', 'Knuth');
-    n = 10000000;
-    m = 1;
+    n = 1000000;
+    m = 3;
     a = 1.5;
     b = 1.0;
     try
@@ -365,7 +365,7 @@ end
 %@test:7
 if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
     method = struct('small', 'Weibull-rejection', 'large', 'Cheng');
-    n = 10000000;
+    n = 1000000;
     m = 1;
     a = 1.5;
     b = 1.0;
@@ -404,8 +404,8 @@ end
 %@test:8
 if ~isoctave && ~user_has_matlab_license('statistics_toolbox')
     method = struct('small', 'Weibull-rejection', 'large', 'Best');
-    n = 10000000;
-    m = 1;
+    n = 1000000;
+    m = 20;
     a = 1.5;
     b = 1.0;
     try
diff --git a/matlab/utilities/tests b/matlab/utilities/tests
index 3362b3f43053a2bb5d3d3a1dbfb1a9e0c42a8fb8..c5ce7645386c6d2e42a018957e245caa3dc05fde 160000
--- a/matlab/utilities/tests
+++ b/matlab/utilities/tests
@@ -1 +1 @@
-Subproject commit 3362b3f43053a2bb5d3d3a1dbfb1a9e0c42a8fb8
+Subproject commit c5ce7645386c6d2e42a018957e245caa3dc05fde
diff --git a/tests/run_all_unit_tests.m b/tests/run_all_unit_tests.m
index 0bdffdb2950cd0f226588514ecc85b271b64659b..a31524b0858b4afd0ca744217ae486bd00882ee1 100644
--- a/tests/run_all_unit_tests.m
+++ b/tests/run_all_unit_tests.m
@@ -36,8 +36,6 @@ if isoctave
     mlist = mlist(find(~strcmp([matlab_dir filesep 'load_m_file_data_legacy.m'], mlist)));
 end
 
-rng(1);
-
 failedtests = {};
 
 for i = 1:length(mlist)