They have separate "private" ip addresses. For example, one computer will be something like 128.0.02 and another will be 128.0.03. The .02 on the end would indicate it is the second computer connected to your home network's router. The .03 would indicate its the third. And so forth.
The private ip addresses are assigned by your home network's router using dynamic or static ip addressing. Most routers are set by default to dynamic. Which means the Ip address can change. The 128.0.2 could be two days in the future 128.0.6 or something else. Whatever the router assigns it.
This is all based upon what is called a "lease" which can be set manually in your routers configuration page. It can be set to 1 hour or 1 month or anything in-between. So if the lease is set to 1 hour that means you will get a new "private" ip address every hour. Typically the factory default is sufficient though. It does not need manually changed.
Now, these are private ip addresses for computers on your home network that the internet is shared across. That's all a router does. It divides up traffic across your home network, which is largely internet traffic, sending it to specific Private ip addresses assigned to each computer.
The ip address assigned to your dsl or cable modem is something entirely different and should not be confused with private ip addresses assigned to computers on your home network. I won't go into specifics on that though because you did not ask about that.
edit:
My explanation on private ip addressing on your home network is true for both wifi and ethernet. The only difference is connection method. Wifi is a wireless connection to your home network's router. Whereas ethernet is wired connection to the home network's router.