Geek Valley
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Go Back   Geek Valley > Web Development Geeks > Client Side Coding Help and Discussion
User Name
Password

Google Ad

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 10-29-2007, 02:54 AM   #1
irety
Registered User
 
Join Date: Oct 2007
Posts: 15 irety is on a distinguished road
Lightbulb Javascript: Prime or not

This script is a slightly modified version of "Unique Random Numbers". In this script it becomes easier to implement more than one instances of "Picking Unique Random Numbers".

This JavaScript picks up a number of unique random elements from an array.
For example; if you have an array myArray consisting of 10 elements and want to pick 5 unique random elements. Suppose initially myArray[3] is picked randomly, then myArray[3] should not be picked again.
irety is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
quick javascript help bojory Client Side Coding Help and Discussion 3 07-13-2008 10:47 PM
calling javascript function using array values flann Client Side Coding Help and Discussion 0 09-12-2007 09:03 AM
Protect website content with JavaScript zhisede Client Side Coding Help and Discussion 0 10-25-2005 09:12 AM
Some sites to learn Javascript.... Danny Client Side Coding Help and Discussion 2 09-28-2005 07:25 PM
Whats better to use? CSS or Javascript? Danny Client Side Coding Help and Discussion 28 03-13-2004 08:17 AM



All times are GMT -6. The time now is 04:52 AM.

Primary Sponsor: eMotion Picture Studios, Toronto

Interior Designer Oakville


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
forum style designed by eMotion Digital Marketing, Toronto