These are some codes that you "might" find useful to use in your hacks!
Random Number Picking:
This can be used to pick random speeds for speedhacks / rgb colors for chams /or almost anything!
Code:
#include <windows.h>
#include <stdio.h>
#include <iostream>
#include "time.h"
using namespace std;
int RandomNumber,Hotkey;
int main()
{
srand(time(NULL));
RandomNumber = (int)(rand()%100);
cout << "RandomNumber: " << RandomNumber << endl;
}
Here is another example off of a website that Music_King posted:
Code:
/* srand example */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main ()
{
printf ("First number: %d\n", rand() % 100);
srand ( time(NULL) );
printf ("Random number: %d\n", rand() % 100);
srand ( 1 );
printf ("Again the first number: %d\n", rand() %100);
return 0;
}
Code:
Output:
First number: 41
Random number: 13
Again the first number: 41
Code:
RandomNumber = (int)(rand()%100);
Saying Random Number from 1 - 100.
Like For maybe chams
Code:
(A,R,G,B)
(rand()%255,rand()%255,rand()%255,rand()%255);
Something like that.
for SpeedHack... lol maybe
Code:
SpeedHackNumber = (int)(rand()%100);
Code:
if(speedhack)
{
*(float*) Speed_Address = SpeedHackNumber * 5;
}
*SpeedHackNumber * 5 -> Means The random speedhacknumber multiplied by 5.
*Just an example
May have errors, Fix them and have fun.
Besides if this is going to be used in your hack you don't need the random project that i just wrote up
All for now.. I had more in my mind but I forgot! ok haha bye!
I'm bored and having fun

Thanks and comment with your snippets hehe
