smdietrich 0 Posted July 8, 2015 Report Share Posted July 8, 2015 Hi, Can anybody tell me the best way to output a random number of Zero's? I need anywhere between 10 to 100 "Zero's" output per text type input, randomized. So something like.... Line 1 output - 000000000000000000000000000000000000Line 2 output - 0000000000000000000000000Line 3 output - 00000000000000000000000000000000000000000000000000and so on... So, every time it's a random number of Zero's that are output from 10 to 100. What's the best (or easiest) way to do this? Any help would be greatly appreciated. Thanks! Quote Link to post Share on other sites
pftg4 102 Posted July 9, 2015 Report Share Posted July 9, 2015 start with 100 zero's get ubot to pick a number between 10-100 use that in substring quickest way set(#test,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,"Global") set(#new item,$substring(#test,0,$rand(10,100)),"Global") keep pushing run and watch in debugger Quote Link to post Share on other sites
pash 504 Posted July 9, 2015 Report Share Posted July 9, 2015 Try. load html($pad text(0,0,$rand(9,99),"Right")) 1 Quote Link to post Share on other sites
smdietrich 0 Posted July 9, 2015 Author Report Share Posted July 9, 2015 Thanks so much, guys! Both excellent solutions. pftg4 that was EXACTLY what I needed. Thank you! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.