added call for Random constructor making it unnecessary to use Impure annotation