# 力扣528. 按权重随机选择


## 力扣528. Random Pick with Weight（按权重随机选择）

按权重随机返回索引。

示例 1：

![](../posts/01_学习/87_LeetCode/0528_按权重随机选择/img/528-1-description.png)

```
输入：["Solution","pickIndex"]
[[[1]],[]]
输出：[null,0]
```

提示：
- 详见原题。

