From 5719668a81ac212720f6266e9bf184d318b36b3a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Mon, 28 Mar 2022 12:08:49 -0500 Subject: Make more of the output debugging output --- sd.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sd.go b/sd.go index 3f5f3ce..f466f6b 100644 --- a/sd.go +++ b/sd.go @@ -97,13 +97,14 @@ func main() { for { // Choose a random card x := rand.Intn(sum) + w, i := s.query(x, 0, N-1, 1) + if *verbose { fmt.Println(sum) fmt.Println(x) + fmt.Println(w) + fmt.Println(i) } - w, i := s.query(x, 0, N-1, 1) - fmt.Println(w) - fmt.Println(i) // Get card contents from database var key, val string -- cgit v1.2.3-70-g09d2