Re: Looking For Special Random Number Generator
Posted by Niborius on
Fri Jul 30th 2010 at 7:21pm
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
I am looking for a special number generator where the lowest number has the most chance, and the highest number has the least chance.
So, if you generate a number between 1 and 100 a few times, you will see low numbers more than high numbers.
Thanks!
Re: Looking For Special Random Number Generator
Posted by Niborius on
Sat Jul 31st 2010 at 2:18pm
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
Sorry, I'm confused, what does that has to do with the random number generator I'm looking for? I just need it for my excel game.
Re: Looking For Special Random Number Generator
Posted by mazemaster on
Sat Jul 31st 2010 at 5:34pm
890 posts
438 snarkmarks
Registered:
Feb 12th 2002
ok, so say that the function rand(1,10) generates a random number between 1 and 10, and rand(1,100) generates a random number between 1 and 100. Then you could write something like this (pseudo code):
function custom_random()
while true
....trial_x_coordinate = rand(1,100)
....trial_y_coordinate = rand(1,10)
....if 10 * trial_y_coordinate < 100 - trial_x_coordinate
........break
end
return trial_x_coordinate
(Ignore the extra ...'s, the site won't indent it right without them)
Re: Looking For Special Random Number Generator
Posted by mazemaster on
Mon Aug 2nd 2010 at 1:27am
890 posts
438 snarkmarks
Registered:
Feb 12th 2002
If this is still confusing let me know I will try to explain more.
Re: Looking For Special Random Number Generator
Posted by omegaslayer on
Mon Aug 2nd 2010 at 1:44am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
Which language is this in? Java (yarr) has a random class that can do this stuff for you actually. Anything else your gonna have to use maze master's algorithm.
Re: Looking For Special Random Number Generator
Posted by Niborius on
Mon Aug 2nd 2010 at 7:39am
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
Well, as much as I appreciate the help, I actually meant a special random number generator found on the internet, I don't do scripts. (I did before but not so much)
Re: Looking For Special Random Number Generator
Posted by Niborius on
Tue Aug 3rd 2010 at 5:23pm
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
Success! I did the technique I posted in my previous post and also made a program within Microsoft Visual Basic 2010.
There's also a 1/2 chance you will not get the item.
Picture:
[IMG]http://i33.tinypic.com/f09aaw.jpg[/IMG]
Re: Looking For Special Random Number Generator
Posted by Niborius on
Thu Aug 5th 2010 at 8:53am
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
For the ones who got a little curious about the game, here's a picture of the status screen.
[IMG]http://i38.tinypic.com/219xfdk.jpg[/IMG]
(Click to enlarge)
Note that I will never release it to the internet though, it's just for people I know IRL.
Re: Looking For Special Random Number Generator
Posted by omegaslayer on
Sat Aug 7th 2010 at 4:16am
2481 posts
595 snarkmarks
Registered:
Jan 16th 2004
Occupation: Sr. DevOPS Engineer
Location: Seattle, WA
You can do a lot on excel. If M$ did something right, it was excel.
Re: Looking For Special Random Number Generator
Posted by Niborius on
Thu Apr 14th 2011 at 9:17pm
1014 posts
1116 snarkmarks
Registered:
Mar 23rd 2009
Location: The Netherlands
While looking through some older topics, I found this one again. Here's a more recent screenshot of the main menu of my game (still not finished though):
[IMG]http://i51.tinypic.com/15x77lu.jpg[/IMG]
Click to enlarge
And don't mention the level Exp's, I didn't work on those yet :P this calculation was from my previous game
Re: Looking For Special Random Number Generator
Posted by Orpheus on
Thu Apr 14th 2011 at 9:27pm
Orpheus
member
13860 posts
2024 snarkmarks
Registered:
Aug 26th 2001
Occupation: Long Haul Trucking
Location: Long Oklahoma - USA
You think you could post that background screen? It would make a cool desktop.. Or maybe its secret material and I should shut up.. :P
The best things in life, aren't things.