func randomOffset(min, max int) int {
	rand.Seed(time.Now().Unix())
	out := rand.Intn(max-min) + min
	return out
}
Gen random number
package gadata
import (
	"encoding/json"
	"fmt"
	"github.com/vly/go-ga-reporting/utils"
	"io/ioutil"
	"log"
	"math/rand"
	"net/http"
	"net/url"
	"strconv"
	"strings"
	"time"
)
const (
	StdEndpoint string = "https://www.googleapis.com/analytics/v3/data/ga"  
	Limit       int    = 5                                                  
)
type GaRequest struct {
	Id         string `json:"ids"`
	StartDate  string `json:"start-date"`
	EndDate    string `json:"end-date"`
	Metrics    string `json:"metrics"`
	Dimensions string `json:"dimensions"`
	Filters    string `json:"filters"`
	Segments   string `json:"segment"`
	Sort       string `json:"sort"`
	MaxResults int    `json:"max-results"`
	Attempts   int
}
func clipEmpty(out *url.Values, key string) {
	if len(out.Get(key)) == 0 {
		out.Del(key)
	}
}