ID:149761
 
can someone direct to something that tells me about making things happen at random.
Look up the rand() proc. to use it do this:
mob
verb
RandomNum()
usr << rand(1,50)


That will display a random number between 1 and 50.

-Rcet
LordG28 wrote:
can someone direct to something that tells me about making things happen at random.

This is really a question that belongs in Newbie Central. When you ask it there, it will help if you elaborate on what you mean by things happening at random. What kinds of things, how random, etc.? For example, do you want one thing to happen at random or semi-random intervals, or several kinds of random events to happen that way, or a random thing happening at a fixed time, or something else?

Lummox JR
In response to Lummox JR
  • This belongs in Newbie central.
  • Code Problems is only for a existing code.
In response to Non-PC
Non-PC wrote:
  • This belongs in Newbie central.
  • Code Problems is only for a existing code.

  • And you're replying to the wrong post, not to mention repeating what I already said anyway. I think he'll be able to get the drift.

    Lummox JR