Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


15 Character Generator

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kaank56
Grandmaster Cheater
Reputation: 0

Joined: 15 Aug 2007
Posts: 999

PostPosted: Wed Dec 03, 2008 7:23 pm    Post subject: 15 Character Generator Reply with quote

I need to know how to make or if someone can give me a generator that makes random gens Ex:AK4FD639L093PQD Lettters and numbers
_________________
Back to top
View user's profile Send private message MSN Messenger
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Wed Dec 03, 2008 7:50 pm    Post subject: Reply with quote

Kind of like this?

Refresh if you can not see the attachment.


Last edited by Innovation on Thu Apr 19, 2012 6:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
Caelestis
Expert Cheater
Reputation: 0

Joined: 03 May 2007
Posts: 153

PostPosted: Wed Dec 03, 2008 7:59 pm    Post subject: Reply with quote

If you are looking for something to key protect your program, RANDOM is not a valid word. The key must be derived from a mathematical equation or else you cannot read it again. Either that or your program has a set number of valid keys, but that would be stupid.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Dec 03, 2008 8:14 pm    Post subject: Reply with quote

Code:
#include <Windows.h>
#include <iostream>
#define LENGTH 15

int main(){
   srand(GetTickCount());
   unsigned char pass[LENGTH];
   for(int i = 0; i < LENGTH; i++){      
      pass[i] = (rand()%(126 - 33 + 1) + 33);
      std::cout << pass[i];
   }
   std::cin.sync();
   std::cin.ignore();
   return 0;
}
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Thu Dec 04, 2008 2:08 am    Post subject: Reply with quote

slov, I wouldn't trust crand as far as I could throw it (which isn't far at all since it isn't a physical object). I'd recommend using a library with a well-audited random number generator, or easier just use Mersenne Twister: http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c
_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites