web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset Random number
Power Apps
Answered

Reset Random number

(0) ShareShare
ReportReport
Posted on by 54

Hi,

 

i generate inside a form a random number: RoundDown(Rand()*(9999-1);0)

 

I want to generate allways a new number when i generate a new from, i do this with pushing an button.

 

I tried to reset the textinput when button.pressed. But the random number stays the same?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,538 Most Valuable Professional on at

    Hi @fluvio ,

    Set a Variable

    UpdateContext({varRand: RoundDown(Rand()*(9999-1);0)});
    Reset(YourTextBoxName)

    Then the Default of the Text Input

    varRand

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • fluvio Profile Picture
    54 on at

    Works perfect thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard