Ummmmm, rattlesnakes DO lay eggs, as do all snakes.
Actually according to my limited knowledge on the matter, there ARE snakes that do not lay eggs.
Rattlesnakes, too, seem to give birth to live snakes, not eggs.
Although the mechanism is a bit different from mammals, as the eggs effectively hatch inside of the snake (and are missing a shell).