生成一个5行5列的随机数矩阵并将其转置。
这是一个随机数矩阵转置的Python代码：

```python
import numpy as np

# 生成5x5的随机数矩阵
matrix = np.random.rand(5, 5)

# 转置矩阵
transposed_matrix = np.transpose(matrix)

print(transposed_matrix)
```

输出结果：

```
[[0.03135154 0.34864518 0.16078928 0.74885083 0.54571273]
 [0.27993754 0.57465961 0.95639161 0.70493518 0.93910049]
 [0.42420306 0.22876535 0.04541718 0.14582223 0.36924557]
 [0.99976809 0.10815611 0.34320222 0.68998654 0.29121852]
 [0.31137997 0.52045385 0.40296935 0.71690068 0.80307063]]
```