sequtils: replace deprecated 'random' call within example (#12515) [backport]

This commit is contained in:
Jjp137
2019-10-25 00:47:34 -07:00
committed by Andreas Rumpf
parent 5b3571c9a4
commit 1d42108fda

View File

@@ -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: