Jump to content
UBot Underground

How To Output A Random Number Of Zero's?


Recommended Posts

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 - 000000000000000000000000000000000000

Line 2 output - 0000000000000000000000000

Line 3 output - 00000000000000000000000000000000000000000000000000

and 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!

 

 

 

 

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...