func RandomName(r *rand.Rand) string {
	idx := r.Intn(len(randomNames))
	return randomNames[idx]
}
RandomName returns a random subspace name from the above random names
package simulation
import (
	"math/rand"
	"time"
	sdk "github.com/cosmos/cosmos-sdk/types"
	simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
	"github.com/desmos-labs/desmos/v2/x/staging/subspaces/types"
)
var (
	randomNames = []string{"facebook", "mooncake", "hiddenguru", "twitter", "linkedin", "snapchat"}
	ids         = []string{
		"4e188d9c17150037d5199bbdb91ae1eb2a78a15aca04cb35530cccb81494b36e",
		"2bdf5932925584b9a86470bea60adce69041608a447f84a3317723aa5678ec88",
		"3d59f7548e1af2151b64135003ce63c0a484c26b9b8b166a7b1c1805ec34b00a",
		"ec8202b6f9fb16f9e26b66367afa4e037752f3c09a18cefab426165e06a424b1",
		"e1ba4807a15d8579f79cfd90a07fc015e6125565c9271eb94aded0b2ebf86163",
		"3f40462915a3e6026a4d790127b95ded4d870f6ab18d9af2fcbc454168255237",
	}
)
type SubspaceData struct {
	Subspace       types.Subspace
	CreatorAccount simtypes.Account
}
func RandomSubspace(r *rand.Rand, subspaces []types.Subspace) (types.Subspace, int) {
	idx := r.Intn(len(subspaces))
	return subspaces[idx], idx
}
func RandomSubspaceData(r *rand.Rand, accs []simtypes.Account) SubspaceData {
	simAccount, _ := simtypes.RandomAcc(r, accs)
	owner := simAccount.Address.String()
	subspace := types.NewSubspace(
		RandomSubspaceID(r),
		RandomName(r),
		owner,
		owner,
		RandomSubspaceType(r),
		RandomDate(r),
	)
	return SubspaceData{
		Subspace:       subspace,
		CreatorAccount: simAccount,
	}
}
func RandomSubspaceID(r *rand.Rand) string {
	index := r.Intn(len(ids))
	return ids[index]
}