mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 09:08:01 +00:00
Use an inline code block for function name
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
Go's `rand` package makes it easy to generate all sorts of pseudo-random numbers.
|
Go's `rand` package makes it easy to generate all sorts of pseudo-random numbers.
|
||||||
|
|
||||||
What they don't tell you though is that the default seed is `1`. They [do
|
What they don't tell you though is that the default seed is `1`. They [do
|
||||||
tell you that the numbers are pseudo-random and that you need to use the Seed
|
tell you that the numbers are pseudo-random and that you need to use the
|
||||||
function to initialize the default source if different behavior is required
|
`Seed` function to initialize the default source if different behavior is
|
||||||
for each run](https://golang.org/pkg/math/rand/), though. So if you write a
|
required for each run](https://golang.org/pkg/math/rand/), though. So if you
|
||||||
program like so:
|
write a program like so:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|||||||
Reference in New Issue
Block a user