Jump to content


Photo

Random Letters + Numbers


  • Please log in to reply
7 replies to this topic

#1 DogFaceBoy

DogFaceBoy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 23 August 2005 - 12:59 AM

What code would I need to make 25 random letters and numbers. But I have certain letters and numbers that I don't want to include.

Example of outcome:

FASDW-WASDW-ASOWL-ASWDS-WDASE


But with certain letters and numbers. Just completly random. Help appreciated.

#2 Stu

Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 23 August 2005 - 03:07 AM

VisualBasic?

#3 DogFaceBoy

DogFaceBoy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 23 August 2005 - 04:19 AM

C++

#4 Hacker-X

Hacker-X

    Young Padawan

  • Members
  • Pip
  • 174 posts

Posted 24 August 2005 - 12:35 PM

you could use JavaScript, just make an array and use Math.floor and Match.random

#5 DogFaceBoy

DogFaceBoy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 24 August 2005 - 04:24 PM

Anyway I can do it with VisualBasic or C++ because this is just a project I want to do to learn with. What do I need to learn to do such a thing?

#6 ronson

ronson

    Banned For Being Purple

  • Twodded Staff
  • PipPip
  • 480 posts
  • Gender:Male
  • Location:North Yorkshire, UK
  • Interests:Rugby, Programming, Building Computers, Networking, Web Design and...........BINGE DRINKING!!!!!!.

Posted 24 August 2005 - 04:56 PM

From what i'm gathering your wanting something on the lines of a key generator?

#7 DogFaceBoy

DogFaceBoy

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 24 August 2005 - 06:48 PM

Yes in a way. I just don't want to say it like that cause I don't want to get in trouble. But yes, how would I do that?

#8 Indigo

Indigo

    Official Alien

  • Members
  • PipPipPip
  • 617 posts
  • Gender:Male
  • Location:Trondheim, Norway
  • Interests:Computing in general, especially design and programming of all kinds.

Posted 18 October 2005 - 04:53 AM

try the rand() command. I ainīt got the code here right now, but I could probably post it sometime later. I got it in C or C++. But the simplest thing would be to do this in PHP!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users