Added random selector function and ran go fmt.