| 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
|
Posted: Thu Mar 13, 2008 1:57 pm Post subject: Number Randomizer |
|
|
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!
_________________
|
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Thu Mar 13, 2008 2:08 pm Post subject: |
|
|
| When it be released?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Mar 13, 2008 2:08 pm Post subject: |
|
|
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 |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Thu Mar 13, 2008 2:09 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Mar 13, 2008 2:19 pm Post subject: |
|
|
Random? I bet this is far away from random :)
There's no need to take seriously my comment...
|
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Thu Mar 13, 2008 2:32 pm Post subject: |
|
|
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 |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Thu Mar 13, 2008 2:45 pm Post subject: |
|
|
| 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
_________________
|
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Thu Mar 13, 2008 2:46 pm Post subject: |
|
|
| 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  |
What do you mean "back in the day"?
You still release everything that you make |
lol, I was waiting for someone to say that
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Mar 13, 2008 4:33 pm Post subject: |
|
|
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 |
|
 |
coder sal Master Cheater
Reputation: 0
Joined: 11 May 2007 Posts: 304
|
Posted: Thu Mar 13, 2008 8:54 pm Post subject: Re: Number Randomizer |
|
|
| 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 |
|
 |
Cx Master Cheater
Reputation: 0
Joined: 27 Jul 2007 Posts: 367
|
Posted: Sat Mar 15, 2008 10:10 am Post subject: |
|
|
Wouldn't it be +1?
_________________
armed with this small butterfly net
i will face the world alone
& never be lonely. |
|
| Back to top |
|
 |
sliner360 Expert Cheater
Reputation: 0
Joined: 03 Jun 2007 Posts: 232
|
Posted: Sat Mar 15, 2008 5:40 pm Post subject: Re: Number Randomizer |
|
|
| 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 |
|
 |
|