Generate random numbers

In the following examples different methods are presented, how numbers are generated randomly in Java Programming Langauge.