Add comma(s) to randomly generated number


Author
Message
wmfang
wmfang
Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)Associate Member (127 reputation)
Group: Forum Members
Posts: 20, Visits: 64
I would like to display text that includes a random number between 10000 and 50000, but for the text to include the commas so that it reads as "10,000 followers" and "50,000 followers".

This is what I currently have:

<text followersText>
/ items = ("<% round(rand(10000, 50000)) %> followers")
/ position = (20%, 65%)
/ fontstyle = ("Arial", 2%, false, false, false, false, 5, 0)
/ color = steelblue
/ halign = left
</text>

Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
wmfang - 2 Months Ago
Dave - 2 Months Ago
wmfang - 2 Months Ago
Dave - 2 Months Ago
wmfang - 2 Months Ago
                         You set the value to a new one /onTrialBegin in the...
Dave - 2 Months Ago
                             How do I make it so that the <data> stores the value for each...
wmfang - 2 Months Ago
                                 First, you need to run your surveypages via blocks, not survey...
Dave - 2 Months Ago

Reading This Topic

Explore
Messages
Mentions
Search