changed rand to randn