moved random procs from math to its own module (breaking change)

This commit is contained in:
Andreas Rumpf 2016-05-30 15:07:19 +02:00
commit 95bb19a579
12 changed files with 43 additions and 122 deletions

View file

@ -657,7 +657,7 @@ template newSeqWith*(len: int, init: expr): expr =
## seq2D[1][0] = true
## seq2D[0][1] = true
##
## import math
## import random
## var seqRand = newSeqWith(20, random(10))
## echo seqRand
var result {.gensym.} = newSeq[type(init)](len)