Jump to content

array random


sugan
 Share

Recommended Posts

Hi,I have an array which contains numbers, and i want a number to be picked randomly from the array each time i load the page without using random function.Is it possible to generate a random number without using rand() function. If so pls tell the code.Regards,Sugan

Link to comment
Share on other sites

Thanks, but i want the code without any functions.Regards,Sugan
You're joking, right? That's impossible. Why would you want it not to be a function anyway? Performance considerations? I'm afraid you're going to have to accept it and further improve performance on other parts of your script.
Link to comment
Share on other sites

I challenge you to show me a piece of useful code without any functions :) methods are counted as functions. Go!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...