Add comma(s) to randomly generated number


Author
Message
wmfang
wmfang
Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)Respected Member (375 reputation)
Group: Forum Members
Posts: 24, Visits: 79
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 - Last Year
Dave - Last Year
wmfang - Last Year
Dave - Last Year
wmfang - Last Year
                         You set the value to a new one /onTrialBegin in the...
Dave - Last Year
                             How do I make it so that the <data> stores the value for each...
wmfang - Last Year
                                 First, you need to run your surveypages via blocks, not survey...
Dave - Last Year

Reading This Topic

Explore
Messages
Mentions
Search