# Random numbers set on a spreadsheet no longer connect to Glide

**URL:** <https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011>\
**Category:** Ask for Help\
**Created:** [January 23, 2023, 2:50am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011 "2023-01-23T02:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daiki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daiki/32/17122_2.png) [@daiki](https://community.glideapps.com/u/daiki)\
**Post date:** [January 23, 2023, 2:50am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011/1 "2023-01-23T02:50:55Z")

</div>

My APP’s URL:[https://helpful-chance-6903.glideapp.io](https://helpful-chance-6903.glideapp.io)

I had an APP that linked random numbers generated in a spreadsheet, but for some reason it no longer connects.

Example: =randbetween(1,3)  
When you perform an action on the APP, the action will be reflected based on the random function.

However, since the other day, the situation where only the same number appears all the time continues.

 ![image_2023_1_23 (1)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/4/74c86a29a05931e107e98fb906604be472922704.png)  
 ![image_2023_1_23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/d/2d16a2f45fe744464ade32f7087c27c966e50dc6.png)

Originally, numbers are reflected randomly from 1 to 3,  
It seems that only 1 appears all the time.

By the way, if you operate directly from the application creation screen instead of from the application, random numbers will be reflected.

Is it due to the contract plan?  
This app subscribes to “Starter Team” for $25/month.

what is the problem Also, do you know how to reconnect the data source to the spreadsheet correctly?

---

<div class="post-metadata">

**Author:** ![daiki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daiki/32/17122_2.png) [@daiki](https://community.glideapps.com/u/daiki)\
**Post date:** [January 23, 2023, 2:52am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011/2 "2023-01-23T02:52:35Z")

</div>

I’m assuming this topic is similar…

> [@Random numbers change in googlesheet but not in Glide Data](https://community.glideapps.com/t/random-numbers-change-in-googlesheet-but-not-in-glide-data/4117):
>
> My app’s URL: [https://r4ale.glideapp.io](https://r4ale.glideapp.io) I want my app to show random messages, so I’ve created in my GoogleSheets table a column with a formula that generates random numbers, and I set up the visibility according to the numbers in this column. The thing is that although the numbers do change in the google sheet, they remain the same in the Glide app data. Even if I press “Reload Sheet”.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 23, 2023, 3:40am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011/3 "2023-01-23T03:40:56Z")

</div>

> [@daiki](#):
>
> Is it due to the contract plan?

You should be able to check your usage dashboard to see if you have hit any limits.

> [@daiki](#):
>
> Also, do you know how to reconnect the data source to the spreadsheet correctly?

Settings-\>Data-\>Data Sources-\>Replace  
You can replace the Google Sheet with itself.

> [@daiki](#):
>
> Example: =randbetween(1,3)

RANDBETWEEN() is a volatile function and is best avoided as it can slow your spreadsheet down.

A much better option in this case is to use the [Roll Dice](https://www.glideapps.com/plugins/dice) plugin column.  
If you use that, then you get instant results in the App and you eliminate any data sync concerns.

---

<div class="post-metadata">

**Author:** ![daiki](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/daiki/32/17122_2.png) [@daiki](https://community.glideapps.com/u/daiki)\
**Post date:** [January 23, 2023, 6:45am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011/4 "2023-01-23T06:45:06Z")

</div>

thank you!

> [@Darren\_Murphy](#):
>
> You should be able to check your usage dashboard to see if you have hit any limits.

What part of the dashboard should I check?

 ![image_2023_1_23 (2)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/7/1719837f6cc9cb07a43ea0c60ab73f3b1a5d990e.png)

Also, isn’t it due to the contract plan rather than the amount of data?  
In the Pro version, I think that the random numbers are reflected correctly.

> [@Random numbers change in googlesheet but not in Glide Data](https://community.glideapps.com/t/random-numbers-change-in-googlesheet-but-not-in-glide-data/4117/2):
>
> I’ve tried this too…it’s a pro app feature to retrieve data in intervals. Rand(), Today() and Now() aren’t considered “edits to sheets” to refresh the app.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 23, 2023, 7:29am UTC](https://community.glideapps.com/t/random-numbers-set-on-a-spreadsheet-no-longer-connect-to-glide/57011/5 "2023-01-23T07:29:54Z")

</div>

> [@daiki](#):
>
> What part of the dashboard should I check?

The Updates section at the top, thats where syncs are counted. But that’s clearly not a problem.

> [@daiki](#):
>
> Also, isn’t it due to the contract plan rather than the amount of data?  
> In the Pro version, I think that the random numbers are reflected correctly.

What you are referring to there is [Extra Data Sync](https://www.glideapps.com/docs/reference/faq/data-refresh#extra-mode) mode, which should be available with any paid plan. When it’s enabled, Glide will sync with your spreadsheet every few minutes while users are active on your App. Which may or may not help.

Regardless, as I already mentioned - if you need to generate random numbers in Glide, then the best way to do it is with the [plugin column](https://www.glideapps.com/plugins/dice) that I linked to earlier.

> [@Random numbers change in googlesheet but not in Glide Data](https://community.glideapps.com/t/random-numbers-change-in-googlesheet-but-not-in-glide-data/4117/2):
>
> I’ve tried this too…it’s a pro app feature to retrieve data in intervals. Rand(), Today() and Now() aren’t considered “edits to sheets” to refresh the app.

That post is two years old. A lot has changed since then. I’m pretty sure that @Robert_Petitto would agree with me when I say that using randbetween() in a GoogleSheet to generate random numbers is not a good idea.
