Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Randomizing objects

Status
Not open for further replies.

spigmike

Technical User
Joined
Nov 26, 2005
Messages
1
Location
US
I know the string of coding to make an item become random is:INT(RND(a number)*a number)+1
And I know how to use it.
The only thing is that when you put it in the program, it picks the same # first,second so on and so forth everytime you start the game. Is there any way to make it start with a different # everytime you come into the game?
 
Look up 'Randomise'

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 

[blush] Tut, Tut, My British English spelling overcame me. Sorry!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Bet that brought the coloUr to your cheeks...
 
[smile]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Similar threads

Replies
4
Views
244

Part and Inventory Search

Sponsor

Back
Top