While the DM always gets the last say in things, there's no problem with using a random number generator to play D&D. In fact, dice sets are not really required. Some folks who don't have a D6 could even use a six-sided pencil if they want to.