use rand instead