random with seed bugfix