Jump to content

Does anyone have a random command I can use?


11Tami

Recommended Posts

[quote author=11Tami link=topic=113358.msg460547#msg460547 date=1162307181]
Hello, I really need something written to make something random. Anyone have anything I can use? Please let me know thanks, Tami
[/quote]

That's a little random ;)

Can you be a little more specific on what you're wanting to make random?
Link to comment
Share on other sites

Gosh, I was going to say I think I need something more than that something in the parenthesis or something....rand(etc.)

Yes I have something I am rotating. Can't list the script someone else gave it to me but its pretty simple. I just need a random variable to call on instead of getting the date. Right now as you can see it calls on the day. I need it to call on a random command instead.      $getfile = date("d");

Hope some of you have some random commands I can put there instead.
Link to comment
Share on other sites

I'm still not following entirely. If there is a list of something you're rotating, is it in an array? If so, just [url=http://us3.php.net/shuffle]shuffle()[/url] the array and display the first one. I think what's throwing me off is your comment about [i]random command calling[/i].
Link to comment
Share on other sites

Not its not an array. I just put some php code into a directory and it rotates everthing in the directory folder. Right now this is what makes everything rotate by day.
$getfile = date("d");

I need it to point to a php random command instead of a date command. Hope someone can help, thanks.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.