Randomness and Pseudo-Randomness

It is a very common occurrence in all aspects of computer science to need a random number. In a virtual card game, how do we determine what cards are dealt? During a ransomware infection, how are passwords chosen? In this day and age, it is a common belief that this can be simply achieved. However,