Jump to content
UBot Underground

Select 10 Random Names From A List Of 100


Recommended Posts

$random list item - but you may get duplicates and so it would take more than one line to do what you want if that's what you're asking, here is one way to do it, keep in mind when adding single list items that you (most likely) want to select "delete duplicates".

clear list(%numbers)
clear list(%ten_numbers)
set(#num,0,"Global")
loop(100) {
    increment(#num)
    add item to list(%numbers,#num,"Don\'t Delete","Global")
}
loop while($comparison($list total(%ten_numbers),"< Less than",10)) {
    add item to list(%ten_numbers,$random list item(%numbers),"Delete","Global")
}
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...