Jump to content

PHP Random


plznty

Recommended Posts

I know this is not coding.. However...

How tolerant is PHP from generating a random output from 1000s of entry columns in a mysql database.

I would like to make a script that would potentially pick one of a 1000 results at random.

is this a problem with being ran multiple times?

Link to comment
Share on other sites

What do you mean by tolerant exactly? Between 1000s of options rand() will server it's purpose, however the result is not truly random. Really no computer can generate a random number based on mathematical formulas. Unless you have some legal obligation to prove you're generating a 100% organic random number though, rand() should be adequate for you.

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.