title: To get the result of two values by adding number
body: <p>i'm working on dice and I just want the sum of two number which i'm getting from 2 different dice i'm getting two random number i want the sum of the 2 numbers.</p>
  
  <pre><code>   onstructor(props){
  
     super(props);
  
     this.state={
  
      // This is our Default number value
      NumberHolder : 1
  
      }
  
      this.state={
  
      // This is our Default number value
      NumberHold : 1
  
      }
  
  
      }
  
      GenerateRandomNumber = () =&gt; {
      let RandomNumber = Math.floor(Math.random() * 6) + 1 ;
      this.setState({
      NumberHolder : RandomNumber
      })
      let RandomNumber1 = Math.floor(Math.random() * 6) + 1 ;
      this.setState({
      NumberHold : RandomNumber1
      })
      }
  
      getDice(diceNum) {
      let diceSource = require(`./images/dice1.png`)
      if (diceNum === 2) {
      diceSource = require(`./images/dice2.png`)
      } else if (diceNum === 3) {
      diceSource = require(`./images/dice3.png`)
      } else if (diceNum === 4) {
      diceSource = require(`./images/dice4.png`)
      } else if (diceNum === 5) {
      diceSource = require(`./images/dice5.png`)
      } else if (diceNum === 6) {
      diceSource = require(`./images/dice6.png`)
       } else {
      diceSource = require(`./images/dice1.png`)
      }
      return (
      &lt;Image style={styles.dice}source={diceSource} /&gt;
       )
       }
      getDice1(diceNum) {
      let diceSourc = require(`./images/dice1.png`)
      if (diceNum === 2) {
      diceSourc = require(`./images/dice2.png`)
      } else if (diceNum === 3) {
      diceSourc = require(`./images/dice3.png`)
      } else if (diceNum === 4) {
      diceSourc = require(`./images/dice4.png`)
      } else if (diceNum === 5) {
      diceSourc = require(`./images/dice5.png`)
      } else if (diceNum === 6) {
      diceSourc = require(`./images/dice6.png`)
      } else {
      diceSourc = require(`./images/dice1.png`)
      }
      return (
     &lt;Image style={styles.dice1}source={diceSourc} /&gt;
     )
     }
     render() {
    // this is just for the demo purposes
    const imageSize = this.state.NumberHolder * 50
  
  
     return (
     &lt;View style={styles.MainContainer} &gt;
     &lt;Text style={{ marginBottom: 10, fontSize: 20,marginTop:10 }}&gt; 
     {this.state.NumberHolder}
     &lt;/Text&gt;
     &lt;Text style={{ marginBottom: 10, fontSize: 20,marginTop:20 }}&gt; 
     {this.state.NumberHold}
  
      &lt;/Text&gt;
  
      &lt;View style={{flexDirection:'row'}}&gt;
      &lt;View style={{fleax:1,justifyContent:"flex-start",alignSelf:"flex- 
       start",    }}&gt;
                { this.getDice(this.state.NumberHolder) }
      &lt;/View&gt;
      &lt;View style={{alignSelf:"flex-end",marginLeft:30,marginBottom:9}}&gt;
      { this.getDice1(this.state.NumberHold) }
      &lt;/View&gt;
      &lt;/View&gt;
  
      &lt;Button style={{marginTop:40}}  title="Roll again" onPress= 
      {this.GenerateRandomNumber} /&gt;
     &lt;/View&gt;
  </code></pre>
  
  <p>I just want that i get the result from the 2 values by adding it. i have generated two numbers and on that basis i'm getting images i just wanted one result by adding 2 random numbers</p>