Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6825493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:02:06+00:00 2026-05-26T22:02:06+00:00

I have about 9 checkboxes in which allows you to pick what items are

  • 0

I have about 9 checkboxes in which allows you to pick what items are available for a future function. I then want to call my function to pick a random one of these items X% of the time (X being set by a constant, to determine how often this should happen), one an item is picked, it needs to be pulled from the list so it is not chosen again the next time we need to call foo().

I was thinking I would iterate through the check boxes initially, and add the ones available to a list. I would do a random to determine if I should pull an item, and then pull it from the list then remove the list item.

Is this the best way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:02:09+00:00Added an answer on May 26, 2026 at 10:02 pm

    Create a collection that references check boxes. randomly select from this collection and once selected remove it. This way you won’t reuse the same check box.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form, in which is about 10 checkboxes. When I want to
I have a function that's called by a link which should check various checkboxes
I have about 20 check boxes. When the user selects these and then uses
i have one problem controlling checkbox, i'm reading, and searching about the topic but
I have about 100 Word documents which include transliteration of foreign names. The author
I have about twenty UITextViews and corresponding .txt files. What I want is to
I have a web form with about 15 checkboxes that users may check 0
I have a form which, for the sake of isolating the problem, has about
I am building an app which should only have a screen with three checkboxes
I'm a little new to Silverlight. I have about 12 CheckBoxes on a page.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.