func (g Generator) Suffix() string {
	return randomWithProb(g.Data.PatientName.Suffixes, g.Data.PatientName.SuffixPercentage)
}
Suffix returns a random suffix.
package names
import (
	"math/rand"
	"github.com/google/simhospital/pkg/config"
	"github.com/google/simhospital/pkg/gender"
)
type Generator struct {
	Data *config.Data
}
func (g Generator) Prefix(gen gender.Internal) string {
	switch gen {
	case gender.Male:
		return random(g.Data.PatientName.MalePrefixes)
	case gender.Female:
		return random(g.Data.PatientName.FemalePrefixes)
	default:
		return ""
	}
}
func (g Generator) FirstName(gen gender.Internal, year int) string {
	switch gen {
	case gender.Male:
		return randomByYear(g.Data.FirstNames.Boys, year)
	case gender.Female:
		return randomByYear(g.Data.FirstNames.Girls, year)
	default:
		return ""
	}
}
func (g Generator) MiddleName(gen gender.Internal) string {
	if rand.Intn(100) < g.Data.PatientName.MiddlenamePercentage {
		switch gen {
		case gender.Male:
			return randomName(g.Data.FirstNames.Boys)
		case gender.Female:
			return randomName(g.Data.FirstNames.Girls)
		}
	}
	return ""
}