在我的代码中,我使用不同类中的随机数.如何定义随机种子?我可以为主代码中的所有类定义此种子吗?
double rnd = Math.random();
java random random-seed
java ×1
random ×1
random-seed ×1