Commits

sweemeng committed b918f4d

generator semi random dataw

Comments (0)

Files changed (1)

goproj/positions/positions.go

     "fmt"
     "http"
     "json"
+    "rand"
 )
 
 
         return
     }
 
-    p := Position{u.String(),[2]float32{3.10593, 101.66478}}
+    p := Position{u.String(),[2]float32{101.66478+rand.Float32(),3.10593+rand.Float32()}}
     b,err := json.Marshal(p)
     if err != nil{
         http.Error(w,err.String(),http.StatusInternalServerError)