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

(cherry picked from commit 1d42108fda)
This commit is contained in:
Jjp137
2019-10-25 00:47:34 -07:00
committed by narimiran
parent 731d1dff84
commit ee0c1482d7

View File

@@ -891,7 +891,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: