I have a code that get all question from datastore:
queQ := datastore.NewQuery("Question")
questions := make([]questionData, 0)
if keys, err := queQ.GetAll(c, &questions); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
I wanted to display these question one a time but in a random manner. I would like to do the reordering of the question slice in go(server) and not in the client. How could it be possible to scramble the ordering of the slices? I have thought of generating ramdom number but I think there is an easy way to do it. Many thanks to all!