eliminate random number without seed in clustering tests (fix #718)

Fix for #718