Index: tests/regression/Makefile.am
===================================================================
--- tests/regression/Makefile.am	(revision 4782599cc2cedbb40da7b38c15b2bf5c0d183589)
+++ tests/regression/Makefile.am	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
@@ -11,4 +11,5 @@
 	Graph \
 	Molecules \
+	RandomNumbers \
 	Selection \
 	Simple_configuration \
@@ -34,4 +35,7 @@
 	$(srcdir)/testsuite-molecules.at \
 	$(srcdir)/testsuite-simple_configuration.at \
+	$(srcdir)/RandomNumbers/testsuite-randomnumbers.at \
+	$(srcdir)/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \
+	$(srcdir)/RandomNumbers/Engine/testsuite-set-random-number-engine.at \
 	$(srcdir)/Selection/testsuite-selection.at \
 	$(srcdir)/Selection/Atoms/testsuite-selection-all-atoms.at \
Index: tests/regression/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at
===================================================================
--- tests/regression/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
+++ tests/regression/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
@@ -0,0 +1,12 @@
+### 1. set the distribution
+
+AT_SETUP([Random numbers - set the distribution with Undo/Redo])
+AT_KEYWORDS([random numbers])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution uniform_int], 0, [stdout], [stderr])
+AT_CHECK([fgrep "uniform_int" stdout], 0, [ignore], [ignore])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution uniform_int --undo], 0, [stdout], [stderr])
+AT_CHECK([fgrep "uniform_smallint" stdout], 0, [ignore], [ignore])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-distribution uniform_int --undo --redo], 0, [stdout], [stderr])
+AT_CHECK([fgrep -c "uniform_int" stdout], 0, [stdout], [ignore])
+AT_CHECK([fgrep "2" stdout], 0, [stdout], [ignore])
+AT_CLEANUP
Index: tests/regression/RandomNumbers/Engine/testsuite-set-random-number-engine.at
===================================================================
--- tests/regression/RandomNumbers/Engine/testsuite-set-random-number-engine.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
+++ tests/regression/RandomNumbers/Engine/testsuite-set-random-number-engine.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
@@ -0,0 +1,12 @@
+### 1. set the engine
+
+AT_SETUP([Random numbers - set the engine with Undo/Redo])
+AT_KEYWORDS([random numbers])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-engine lagged_fibonacci607], 0, [stdout], [stderr])
+AT_CHECK([fgrep "lagged_fibonacci607" stdout], 0, [ignore], [ignore])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-engine lagged_fibonacci607 --undo], 0, [stdout], [stderr])
+AT_CHECK([fgrep "minstd_rand0" stdout], 0, [ignore], [ignore])
+AT_CHECK([../../molecuilder -v 3 --set-random-number-engine lagged_fibonacci607 --undo --redo], 0, [stdout], [stderr])
+AT_CHECK([fgrep -c "lagged_fibonacci607" stdout], 0, [stdout], [ignore])
+AT_CHECK([fgrep "2" stdout], 0, [stdout], [ignore])
+AT_CLEANUP
Index: tests/regression/RandomNumbers/testsuite-randomnumbers.at
===================================================================
--- tests/regression/RandomNumbers/testsuite-randomnumbers.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
+++ tests/regression/RandomNumbers/testsuite-randomnumbers.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
@@ -0,0 +1,7 @@
+AT_BANNER([MoleCuilder - Random numbers])
+
+# 1. set the engine
+m4_include(RandomNumbers/Engine/testsuite-set-random-number-engine.at)
+
+# 2. set the distribution
+m4_include(RandomNumbers/Distribution/testsuite-set-random-number-distribution.at)
Index: tests/regression/testsuite.at
===================================================================
--- tests/regression/testsuite.at	(revision 4782599cc2cedbb40da7b38c15b2bf5c0d183589)
+++ tests/regression/testsuite.at	(revision 3f9eba726fa6ba97ad9f47ad397aa83f8f1fc923)
@@ -18,4 +18,6 @@
 m4_include(Selection/testsuite-selection.at)
 
+m4_include(RandomNumbers/testsuite-randomnumbers.at)
+
 m4_include(testsuite-domain.at)
 
