There have been nearly 100 shark attacks in California since the 1920s, including a dozen that were fatal, according to the California Department of Fish and Game. But attacks have remained relatively rare even as the population of swimmers, divers and surfers sharing the waters has soared.