Feature fix modules

Some minor fixes on modules calc, admin and rand. All of them didn't check if user input was valid in some cases.