2009 Dodge Ram 1500 shakes at random

My transmission seems to shift fine but at random it shakes. It’s like you are driving over rumble strips. What might be the problem?

Out of balance tires, out of balance driveshaft, failing U-joints. If this truck has a 2 piece driveshaft it could be the center bearing based on the very little you told us.