1,105,578 Community Members

Can you solve this below problem in efficient way

Member Avatar
pssubash
Light Poster
34 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

I need all the possible combinations alphabets, numbers (a-z0-9) , _(underscore) and .(dot) which must satisfy the below conditions

Please use between 6 and 30 characters.
Please use only letters (a-z), numbers(0-9)
The first character should be a letter (a-z) or number.
The last character a letter (a-z) or number.

Thanks,
Subash

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
0
 

What do you have so far?

Member Avatar
pssubash
Light Poster
34 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

Nothing I have right now

Member Avatar
Octet
Posting Pro
579 posts since Nov 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 53 [?]
Skill Endorsements: 16 [?]
Featured
Sponsor
 
0
 

Please refer to the rules, the forums are designed for people to help with code however you must put in the work yourself if you want people to spend the time and help you.

When you have some code to show, people shall be more than happy to look it over.

It means that not only will you learn how to code more effectively by writing it yourself, but also stops people asking others to do their homework etc.

Member Avatar
minitauros
Practically a Master Poster
606 posts since Apr 2011
Reputation Points: 67 [?]
Q&As Helped to Solve: 105 [?]
Skill Endorsements: 6 [?]
 
0
 

An idea:

Create arrays containing for example a-z or 0-9. Create a function that randomly selects an array key. Then create a loop that executes this function 6-30 times.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: