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 


Number Randomizer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
I'm C.H.
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2006
Posts: 1000
Location: Sweden

PostPosted: Thu Mar 13, 2008 1:57 pm    Post subject: Number Randomizer Reply with quote

Well I was going to make a trainer but I couldn't find a game so I decided to make a number randomizer instead. It simply creates a random number from 0 to a decided value. Remember to put the value 1 more than the number you want or it will go 1 number from the decided value. Like this for example: If you want a number from 0-300, don't type 300. Instead, type 301. Well enough talking. Here's an image!




The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Omg. I need something to do...

*-* My Flash Trainers *-*

*-* My Mouse Vac Tut *-*

Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Thu Mar 13, 2008 2:08 pm    Post subject: Reply with quote

When it be released?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Mar 13, 2008 2:08 pm    Post subject: Reply with quote

Catch the exception and do something or prevent it from happening in the first place.

By the way, congrats on finding the Random class. Ok, you're learning, but you don't need to release every single thing you make along the way.
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Thu Mar 13, 2008 2:09 pm    Post subject: Reply with quote

slovach wrote:
Catch the exception and do something or prevent it from happening in the first place.

By the way, congrats on finding the Random class. Ok, you're learning, but you don't need to release every single thing you make along the way.


lol, I remember back in the day. I used to release everything I make Smile
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Thu Mar 13, 2008 2:19 pm    Post subject: Reply with quote

Random? I bet this is far away from random :)

There's no need to take seriously my comment...
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Thu Mar 13, 2008 2:32 pm    Post subject: Reply with quote

hmm simply do

randmaxnumber(or whateva it is) = text1.text - 1

so it is automtically corrected

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Thu Mar 13, 2008 2:45 pm    Post subject: Reply with quote

mageknight wrote:
slovach wrote:
Catch the exception and do something or prevent it from happening in the first place.

By the way, congrats on finding the Random class. Ok, you're learning, but you don't need to release every single thing you make along the way.


lol, I remember back in the day. I used to release everything I make :)


What do you mean "back in the day"?

You still release everything that you make

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Thu Mar 13, 2008 2:46 pm    Post subject: Reply with quote

samuri25404 wrote:
mageknight wrote:
slovach wrote:
Catch the exception and do something or prevent it from happening in the first place.

By the way, congrats on finding the Random class. Ok, you're learning, but you don't need to release every single thing you make along the way.


lol, I remember back in the day. I used to release everything I make Smile


What do you mean "back in the day"?

You still release everything that you make


lol, I was waiting for someone to say that Very Happy
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Mar 13, 2008 4:33 pm    Post subject: Reply with quote

If you are using the default built in random function I suggest you work a bit more into making it really random. Most of the time the table is pregenerated on your system, an easy way to test is open the program and write down the first three numbers it gives, close and reopen, and do the same. Using the default system randomizer, you will always get the same digits if you do not call randomize before hand.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
coder sal
Master Cheater
Reputation: 0

Joined: 11 May 2007
Posts: 304

PostPosted: Thu Mar 13, 2008 8:54 pm    Post subject: Re: Number Randomizer Reply with quote

CheatingHacker wrote:
Well I was going to make a trainer but I couldn't find a game so I decided to make a number randomizer instead. It simply creates a random number from 0 to a decided value. Remember to put the value 1 more than the number you want or it will go 1 number from the decided value. Like this for example: If you want a number from 0-300, don't type 300. Instead, type 301. Well enough talking. Here's an image!



You know you could fix the 301 thing so you could write 300 right?
You can simply do this code:
Code:
text1.text = text1.text - 1

Put it into your form load, or better, a timer.
Back to top
View user's profile Send private message
Cx
Master Cheater
Reputation: 0

Joined: 27 Jul 2007
Posts: 367

PostPosted: Sat Mar 15, 2008 10:10 am    Post subject: Reply with quote

Wouldn't it be +1?
_________________

armed with this small butterfly net
i will face the world alone
& never be lonely.
Back to top
View user's profile Send private message
sliner360
Expert Cheater
Reputation: 0

Joined: 03 Jun 2007
Posts: 232

PostPosted: Sat Mar 15, 2008 5:40 pm    Post subject: Re: Number Randomizer Reply with quote

coder sal wrote:
CheatingHacker wrote:
Well I was going to make a trainer but I couldn't find a game so I decided to make a number randomizer instead. It simply creates a random number from 0 to a decided value. Remember to put the value 1 more than the number you want or it will go 1 number from the decided value. Like this for example: If you want a number from 0-300, don't type 300. Instead, type 301. Well enough talking. Here's an image!



You know you could fix the 301 thing so you could write 300 right?
You can simply do this code:
Code:
text1.text = text1.text - 1

Put it into your form load, or better, a timer.


it shouldnt be neither in the form load nor in a timer

in a timer it will:
keep subtracting one from text1

formload:
it will change text1 to -1

so it should be placed in the button and it should be +1 not -1
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