Skip to content

Commit

Permalink
feat: add RandFromGivenSlice function
Browse files Browse the repository at this point in the history
  • Loading branch information
cannian1 committed Aug 14, 2024
1 parent 1eef4d7 commit 469ed93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/packages/random.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func main() {
func RandInt(min, max int) int
```

<b>示例:<span style="float:right;display:inline-block;">[运行]()</span></b>
<b>示例:<span style="float:right;display:inline-block;">[运行](https://go.dev/play/p/pXyyAAI5YxD)</span></b>

```go
package main
Expand Down Expand Up @@ -133,7 +133,7 @@ func main() {
func RandFromGivenSlice[T any](slice []T) T
```

<b>示例:<span style="float:right;display:inline-block;">[运行](https://go.dev/play/p/29QfOh0DVuh)</span></b>
<b>示例:<span style="float:right;display:inline-block;">[运行]()</span></b>

```go
package main
Expand Down

0 comments on commit 469ed93

Please sign in to comment.