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
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 ## Creates a sequence of 20 random numbers from 1 to 10
import random import random
var seqRand = newSeqWith(20, random(10)) var seqRand = newSeqWith(20, rand(10))
var result = newSeq[type(init)](len) var result = newSeq[type(init)](len)
for i in 0 ..< len: for i in 0 ..< len: