Jump to content

array random


sugan

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

Archived

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

×
×
  • Create New...