# I cannot make random integer into a variable

**URL:** <https://community.thunkable.com/t/i-cannot-make-random-integer-into-a-variable/813325>\
**Category:** Questions about Thunkable X\
**Created:** [September 13, 2020, 9:24am UTC](https://community.thunkable.com/t/i-cannot-make-random-integer-into-a-variable/813325 "2020-09-13T09:24:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nubietechuab](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nubietechuab](https://community.thunkable.com/u/nubietechuab)\
**Post date:** [September 13, 2020, 9:24am UTC](https://community.thunkable.com/t/i-cannot-make-random-integer-into-a-variable/813325/1 "2020-09-13T09:24:43Z")

</div>

i would like to use two instances of random integer that will give me the same results.

- First it would show as a result in a lable
- Second i will be using it in a logic…  
“Both function should have the same result but my code below shows different results”  
 ![Capture1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1c2012accab54332bb2efcdd5d4092b857947789.jpeg)

I tried turning it into a variable still it wouldnt work:

 ![Capture2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/822e46e6cdeff8aacb003b50a57336537c1d3e6d.jpeg)  
since i cannot turn this random integer into a variable what is the work around for this.

thank you looking forward

---

<div class="post-metadata">

**Author:** ![bilastois](https://avatars.discourse-cdn.com/v4/letter/b/65b543/32.png) [@bilastois](https://community.thunkable.com/u/bilastois)\
**Post date:** [October 3, 2020, 11:13pm UTC](https://community.thunkable.com/t/i-cannot-make-random-integer-into-a-variable/813325/2 "2020-10-03T23:13:13Z")

</div>

you can use the example block

 ![Adsız](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/9/d9cea36e3b389d7b73eef15d1e9ebc95ddefa59d.jpeg)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:23pm UTC](https://community.thunkable.com/t/i-cannot-make-random-integer-into-a-variable/813325/3 "2024-11-08T12:23:35Z")

</div>


