Question: ```
I'm trying to generate a random path from the center of a circle and count how     many steps it takes to exit the circle, my programming language is python 2.7. I've imported random and numpy.

```

I've written some pseudo code to help me keep in mind what I want to accomplish:

```
Start at center of circle
Keep track of step count
Step distance=1 step
Radius of Circle=500 steps
While location<500 steps from center:
    take=1 step in random angle direction
    continue while loop
How many steps?

```

I'm having trouble with every part of this code. I don't know where to begin,
I imagine I'd have to append to an array so I can know when I've exited the circle but I have no idea how to keep track of my coordinates.

***Update***

This is the code I have written so far, it will be updated as I make changes:

```
#Start code
#Import modules
import numpy

#Define constants
r=500
step=1
step_count=0

#Defining origin in circle
x=0
y=0

#While inside the circle
while (x**2+y**2)**(1./2.)<=r:
    x_step=step*numpy.cos(numpy.random.beta(0.,2.,1./180.)
    y_step=step*numpy.sin(numpy.random.beta(0.,2.,1./180.)
    x+=x_step
    y+=y_step
    step_count+=1

#Print answer
print step_count

```

Things to correct:

* y\_step=step\*numpy.sin(numpy.random.beta(0.,2.,1./180.)

SyntaxError: invalid syntax

* ???

Answer: 
It seems that you need to provide a width style parameter, like so :

```
<WebView
    source={{uri: 'https://github.com/facebook/react-native'}}
    style={{width: 300}}
/>

```

Note that you might have to provide a height style parameter as well. You can also add `flex: 1` to the style.
add `style` prop with `flex: 1` on `WebView`

```
export default class App extends Component {
  render() {
   return (
    <View style={styles.container}>
      <Text style={styles.paragraph}>
        Change code in the editor and watch it change on your phone!
        Save to get a shareable url. You get a new url each time you save.
      </Text>
      <WebView style={{flex: 1}} source={{html: '<p>Here I am</p>'}} />        
      <WebView style={{flex: 1}} source={{ uri: 'http://www.google.com'}} />
    </View>
  );
 }
}

```