Added random number generator and base logging functionality