Random number generation is common in various fields. Unfortunately, it is easy to be done wrongly, leading to inaccurate output or even security compromise. This talk aims on giving out a few case studies on using random numbers, e.g. how rand() in glibc fails when doing simulation, what should be cared for random numbers used in blockchain and cryptography, etc.