aboutsummaryrefslogtreecommitdiff
path: root/sd.go
diff options
context:
space:
mode:
Diffstat (limited to 'sd.go')
-rw-r--r--sd.go7
1 files 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