Random numbers

Talk about making games.

Random numbers

Postby tom.drin » Fri May 06, 2005 10:11 pm

Hi, I´m doing some deathmatch game, and i need to respawn on random place.
So I need some generator of random numbers.
Is in GE somethink like that?
tom.drin
 
Posts: 13
Joined: Fri May 06, 2005 10:08 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Sat May 07, 2005 10:53 am

int diceThrow = ( rand(6) + 1 );
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby tom.drin » Sat May 07, 2005 12:28 pm

thanks
tom.drin
 
Posts: 13
Joined: Fri May 06, 2005 10:08 pm
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest