Modern computers can do some pretty amazing things. So why can't they do something as simple as simulating a dice roll? It all comes down to the way computers are programmed. Computers follow algorithms, which are essentially just lists of instructions on how to carry out tasks. They're slaves to their instructions, so they're completely predictable. Still, engineers are pretty savvy, and they've come up with a few different ways to make computers generate something very close to random numbers, even if they can't generate true randomness.