Added global functions

Added get_random_int(int) and percentage(%) functions, started on door
generation