# Pulling Random Data

**URL:** <https://community.blaze.today/t/pulling-random-data/6256>\
**Category:** Uncategorized\
**Created:** [November 4, 2020, 3:14pm UTC](https://community.blaze.today/t/pulling-random-data/6256 "2020-11-04T15:14:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![scott](https://community.blaze.today/user_avatar/community.blaze.today/scott/32/30_2.png) [@scott](https://community.blaze.today/u/scott)\
**Post date:** [November 4, 2020, 7:17pm UTC](https://community.blaze.today/t/pulling-random-data/6256/2 "2020-11-04T19:17:10Z")

</div>

Hi, and welcome to the forum! 🙂

You can use the `random()` function to generate a random number between 0 and 1. You can use this to select a random item from a list:

{=random()}  
{=random()}  
{=random()}

Selecting a random item from a list:  
{list=["red", "green", "blue", "yellow", "pink", "purple", "orange", "black"]}  
{=list[ceil(random() \* count(list))]}  
{=list[ceil(random() \* count(list))]}  
{=list[ceil(random() \* count(list))]}

This thread has a guide on how to pull a Google Sheet into your snippet:

> [@Can I use a list in google sheet for a drop down menu?](https://community.blaze.today/t/can-i-use-a-list-in-google-sheet-for-a-drop-down-menu/5946):
>
> Hi I started using TB last week and I really enjoy it. I have a question regarding drop down menu. Can I import a list from a google sheet to the drop down menu? Thank you in advance!

---

_[View the full topic](https://community.blaze.today/t/pulling-random-data/6256)._
