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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:38:19+00:00 2026-06-18T14:38:19+00:00

How would I go about generating a sequential alphanumeric string? Each string should only

  • 0

How would I go about generating a sequential alphanumeric string?

Each string should only be 8 characters.

The characters possible for each position are:

["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "B", "C", "D", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "V", "W", "X", "Y", "Z"]

Also, If possible I would like to choose the starting point of the sequence.

For example:

00000001
00000002
00000003
00000005
...
0000L3FH
0000L3FJ
0000L3FK
0000L3FL
0000L3FM
0000L3FN
0000L3FP
...
0000L4FP
0000L4FQ
0000L4FR
0000L4FS
...
0000M000
0000M001
0000M002
  • 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-18T14:38:21+00:00Added an answer on June 18, 2026 at 2:38 pm

    That is a permutation with repetition. Arrays can do that out of the box.

    chars = %w(0 1 2 B C)
    sequencer = chars.repeated_permutation(chars.size) #OP:replace chars.size by 8
    10.times{p sequencer.next}
    #["0", "0", "0", "0", "0"]
    #["0", "0", "0", "0", "1"]
    #["0", "0", "0", "0", "2"]
    #["0", "0", "0", "0", "B"]
    #["0", "0", "0", "0", "C"]
    #["0", "0", "0", "1", "0"]
    #["0", "0", "0", "1", "1"]
    #["0", "0", "0", "1", "2"]
    #["0", "0", "0", "1", "B"]
    #["0", "0", "0", "1", "C"]
    
    p sequencer.next
    #["0", "0", "0", "2", "0"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would I go about generating a list of all possible permutations of a
Sort of an odd question- how would I go about generating a character string
I would like my templates to be smarter about generating controllers. In my domain
How would I go about generating random platforms without intersection? I think garbage collection
I would like 'about' to route to 'abouts/1' I tried this: match 'about' =>
I would like to know how I would go about altering the HTML that
How would you go about generating the unique video URL's that YouTube uses? Example:
How would I go about generating a unique receipt number in the following range:
I had a asked a previous question about generating a tree like structure which
How would I go about generating Visual Basic 6 Proxy dll/tlb from a WSDL

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.