sequtils: replace deprecated 'random' call within example (#12515) [backport]
This commit is contained in:
parent
5b3571c9a4
commit
1d42108fda
1 changed files with 1 additions and 1 deletions
|
|
@ -903,7 +903,7 @@ template newSeqWith*(len: int, init: untyped): untyped =
|
|||
|
||||
## Creates a sequence of 20 random numbers from 1 to 10
|
||||
import random
|
||||
var seqRand = newSeqWith(20, random(10))
|
||||
var seqRand = newSeqWith(20, rand(10))
|
||||
|
||||
var result = newSeq[type(init)](len)
|
||||
for i in 0 ..< len:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue