added very basic implementation of random numbers