added random surfer function