For a more cryptographically strong pseudo random generator you may check out
java.security.SecureRandom class. Here the caller may specify the algorithm
name and (optionally) the package provider. Here is a sample code of using
SecureRandom class: