Is it just because of “large API syndrome” or generating random numbers that are more biased favored in some situations? If it was..I would think that controlling the bias-ness would be important.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’re the same, really. Just a convenience method. Check the javadoc here. Additionally, you’re able to re-seed by creating random objects, while
Math.random()will use a static Random instance.