Okay, i understand that the Random() in Java gets its seed from the system date and time by default in milliseconds. having said that, if im not mistaking, a seed in milliseconds it looks like the fallowing: 967884300000. That is 09/23/2000 9:45:00. i keep getting out of range when i do Random dice = New Random(967884300000); i understand it is out of range but thats an actual seed at some point when using the system time. Is there something i am missing? how does the Random() deals with those milliseconds when in reality they are out of range to the function??? please help
Aucun commentaire:
Enregistrer un commentaire