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?
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.
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].
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.