```javascript
WXAPI.randomNick(len)
```
+ len is the length of the nickname. You can pass it as a number or not. If you don’t pass this parameter, a random nickname of 2 to 3 characters will be returned.
```json
{
"code": 0,
"data": "Segment real throw",
"msg": "success"
}
```