added random method / cryptography class which provides random numbers