Example #1
0
func generateRandomNameAndSex() (string, string, string) {
	fmt.Println("Generating Random Name/Sex")
	// Will return random generated name
	sexInt := rand.RandIndex(2)
	fmt.Println(sexInt)
	var first string
	if sexInt == 0 {
		first = male[rand.RandIndex(len(male))]
	} else {
		first = female[rand.RandIndex(len(male))]
	}
	last := surname[rand.RandIndex(len(surname))]
	return first, last, sex[sexInt]
}
Example #2
0
func generateRandomAlignment() (string, string) {
	fmt.Println("Generating Random Alignment Stats")
	return alignment[rand.RandIndex(len(alignment))], lawalignment[rand.RandIndex(len(lawalignment))]
}