summaryrefslogtreecommitdiff
path: root/src/lib/rand.go
AgeCommit message (Collapse)AuthorFilesLines
2009-03-05document randRob Pike1-11/+18
R=rsc DELTA=27 (16 added, 8 deleted, 3 changed) OCL=25804 CL=25813
2009-01-20delete exportRuss Cox1-12/+12
TBR=r OCL=23121 CL=23127
2009-01-16casify miscRuss Cox1-81/+52
R=r DELTA=247 (20 added, 50 deleted, 177 changed) OCL=22951 CL=22955
2009-01-06new new & makeRuss Cox1-1/+1
R=r OCL=22166 CL=22166
2008-12-18convert *[] to [].Russ Cox1-1/+1
R=r OCL=21563 CL=21571
2008-11-18perm is [] instead of mapKen Thompson1-3/+3
R=r OCL=19569 CL=19569
2008-11-16random permutation functionKen Thompson1-0/+17
func perm(n int) *map[int]int R=r OCL=19340 CL=19340
2008-10-07update code to follow new semicolon rules:Russ Cox1-2/+2
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-09-12change rand names to match type namesRuss Cox1-34/+44
R=r DELTA=66 (19 added, 9 deleted, 38 changed) OCL=15232 CL=15265
2008-08-04- switched most of existing Go code to new export syntaxRobert Griesemer1-8/+10
- adjusted lang doc R=r DELTA=192 (26 added, 65 deleted, 101 changed) OCL=13844 CL=13848
2008-07-20tweaks to initKen Thompson1-0/+768
rand using init SVN=128142