playMaker

Author Topic: Sum of two Random Int number, help[SOLVED]  (Read 1738 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
Sum of two Random Int number, help[SOLVED]
« on: April 22, 2015, 11:02:33 PM »
i have a Random Int, them Convert Int To String, them wait 1 second, them again another Random Int, them Convert Int To String, them wait 1 second, now i need to Sum the result of the 2 Random Int values,  How can i do that.


Let say, the first value was 36, then the other value 22, so i need the sum of both, 58
It is possible?
« Last Edit: April 23, 2015, 01:36:44 AM by jeanfabre »

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: Sum of two Random Int number, help
« Reply #1 on: April 22, 2015, 11:13:48 PM »
If you are asking if 2 ints can be added, then yes.

- get int 1 and store as interger
- display int 1
- get int 2 and store as int
- display int 2
- add both together
- display int 3


Just save each random int as it's own variable.  Then you add the 2 together and store in the 3rd variable.

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Sum of two Random Int number, help
« Reply #2 on: April 22, 2015, 11:26:44 PM »
i put one Get Fsm Int, with interger store in the int 3 variable, and another Get Fsm Int with int store in the int 3 variable, in the same state. them Convert Int To String, with int 3 variable and the GUI text string variable. But does not show the sum of both Random Int values.

How can i proceed? to have the sum of the 2 values

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Sum of two Random Int number, help
« Reply #3 on: April 22, 2015, 11:29:38 PM »
Ok man, i got it!! works great, thank you.