Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ random number generating code?
Name: gimmpy224 Date: November 6, 2004 at 22:49:43 Pacific OS: windows XP pro CPU/Ram: athlon 64 3000+, 2 gb
Comment:
Well I plan to make a game someday (rpg) and i would need a way to generate random number for monsters to hit you.
Right now im just gonna make some little text based game to start off with..
So I was wondering if you could help me brainstorm to figure out how to generate a random number from 0 to x into an integer that i can use as the monsters damage to you that hit.... :) any idea is welcome :)
Summary: Hi, im having difficulty with the random number generator in C, rand(). What Im trying to do is estimate the mean of a real number generator. So I need the random function to throw up a real number ...
Summary: Hello, I am searching for a random number generator in C++. I don't want to use the rand()/srand() functions. The purpose is a serious and precise simulation. All I need is a very fast function that o...
Summary: Hi folks...me again. I was just going over Random number generation and got everything to work except one little thing. I want to try to generate numbers from sets like 2,4,6,8 or 4,10,16,20 I thought...