rand is now in std