diff --git a/Modules/Applications/AppClassification/test/CMakeLists.txt b/Modules/Applications/AppClassification/test/CMakeLists.txt
index b3be2f4f61907c1a7b37016db633b0fc7109b37f..556cc57987594132598622a258bc9019e23037f7 100644
--- a/Modules/Applications/AppClassification/test/CMakeLists.txt
+++ b/Modules/Applications/AppClassification/test/CMakeLists.txt
@@ -688,7 +688,9 @@ if(OTB_USE_SHARK)
     -ts 30000
     -nc 5
     -maxit 10000
+    -sampler periodic
     -nodatalabel 255
+    -rand 121212
     -centroids.in ${INPUTDATA}/Classification/KMeansInputCentroids.txt
     -out ${TEMP}/apTvClKMeansImageClassificationInputCentroids.tif uint8
     -cleanup 0