Implementing the "RandomSeq" example

with supporting implementation of `StdRandom.uniform`
This commit is contained in:
Dan Buch
2012-12-19 22:58:37 -05:00
parent 6ebbf04980
commit 9a1c045581
3 changed files with 58 additions and 1 deletions

25
algs4/src/go/Makefile Normal file
View File

@@ -0,0 +1,25 @@
REPO_BASE := github.com/meatballhat/box-o-sand/algs4/src/go
TARGETS := \
$(REPO_BASE)/algs4 \
$(REPO_BASE)/algs4-binarysearch \
$(REPO_BASE)/algs4-flips \
$(REPO_BASE)/algs4-gcd \
$(REPO_BASE)/algs4-rolls \
$(REPO_BASE)/algs4-randomseq
test: build
go test -x $(TARGETS)
build: deps
go install -x $(TARGETS)
fmt:
go fmt -x $(TARGETS)
deps:
go get -x -n $(TARGETS)
clean:
go clean -x -x $(TARGETS)
.PHONY: test build clean fmt