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 8238155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:42:47+00:00 2026-06-07T19:42:47+00:00

First off let me say I’m a beginner at programming. So far I’ve done

  • 0

First off let me say I’m a beginner at programming. So far I’ve done only one android app that did little more than go out to the net, grab some data and do some simple calculations on it. I quite enjoyed that and would like to continue to try to learn by coding.

I have another idea I would like to turn into an app:

I have 2 lists of words. One with about 50,000 words and the other with nearly 100,000 words. What I want to do is randomly pick one word from each of those lists and keep picking until the first character of both words is the same.
But right off the bat I find myself stuck because I don’t know the proper way of storing those lists for my purpose(plain txt? csv? xml? something else?).

Could someone please point me in the right direction? It seems like I’m getting nowhere by googling alone.

  • 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-06-07T19:42:48+00:00Added an answer on June 7, 2026 at 7:42 pm

    With this many words in both data set, it could be quite long to pick at random until the first letter matches.

    Here’s an idea to make this faster. Store both data in a SQLite table. Then you can select a random first letter and query a random row from each table which begins with your letter. For example, the following query returns one random row with a column’s value beginning by A

    SELECT word FROM table WHERE wordlike 'A%' ORDER BY RANDOM() LIMIT 1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, let me say that I am familiar with content_for . It's not
First off, let me say that this is not homework (I am an A-Level
First off let me say this is my first ASP.NET project I have done.
First off, let me say I am a new to SAX and Java. I
First off, let me start by saying that I am totally new to working
First off I want to say that I wasn't really sure where to post
Let's say I am building an web app that is connecting and basically parsing
First off let me just say, i dont want anyone to post solutions because
First off, let me preface this question by saying that my professor is firmly
First off let me just say I'm very new to coding so there are

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.