Register
Sign In
Skip over navigation
Home
Add New Question
Jobs
Products
Scramble and array
Question posted
in
Computer Software
on
05 2010
Rate question difficulty level
0
0 Votes
Write a function that gets an array of values and scramble it so that the result will always be random (means that a specific array won't return the same result each and every time.)
Add an answer
Share
|
21 Answers
Gadi Berqowitz
The key for the answer is to random one of the cells in the array and then remove it from the array to the result array so it would come up again in the random function.
here's the result in C# using Array lists:
public ArrayList Func(ArrayList arr)
{
ArrayList result = new ArrayList();
while (arr.Count > 0)
{
Random random = new Random();
int rnd = random.Next(arr.Count-1);
result.Add(arr[rnd]);
arr.RemoveAt(rnd);
}
return result;
}
05/25/2010
HaleyMaslonka
how do u set apache ...
how do u set apache to goto outside websites??? Im using Ubuntu Server 11.04 and if I go a Location: outsite of my website I get a warning saying it can not be set to an external website...,
12/05/2011
underson45
Sometimes it is very hard to find good content on this topic. But your blog is my way to desired information, my problem is solved now. Thanks for posting something worth reading.
aluminum tubing
03/08/2012
JoshuaJones
I always find such amazing posts on this website and today’s post was really amazing. Now I have become a regular user of this website. Thanks for giving us so much knowledge.
content writing services
03/15/2012
settingnormal
I enjoyed reading your article and found it to be informative and to the point. Thank you for not rambling on and on just to fill the page.
Attends Briefs
03/17/2012
kirkland
You are fantastic as your work and I really think that this is a good topic to share....
mothers day flowers delivery germany
|
flowers for mother's day
03/22/2012
inter4522
There is so much that goes into solving something like this. You really have to do your homework on this. Also so much to get from the answer.
Load Cells
03/27/2012
johnb12
I see so much that goes into solving this. You really have to know what you are doing here. I see a lot of people taking a crack at this problem.
actos recall
04/10/2012
dsfad
amazing article very nice.
Bronx glass
04/12/2012
Nike Requin
Nike Tn Pas Cher
TN Requin
TN Requin Pas Cher
Nike Requin
Nike TN Requin
TN Requin
TN Pas Cher
Nike TN
Nike air max
TN REQUIN
Puma Pas Cher
Nike tn 2012
tn foot locker
TN Pas Cher
04/17/2012
john
I will be back to look at out more of your articles later!
Penthouse in gurgaon
apartments for sale in gurgaon
emaar mgf palm gardens gurgaon
palm gardens gurgaon
emaar mgf palm hills
palm gardens
04/17/2012
tn pas cher
Nike TN Pas Cher
TN Pas Cher
Nike Requin
Nike TN
Nike Air Jordans
Cheap Jordan Shoes
AIR Jordans
Nike Jordan Shoes
Nike Air Jordans
Nike Tn Pas Cher
Sac a main
Sac a main femme
sac a dos
valise
bagage à main et maroquinerie en ligne - Gsell
TN Nike
TN Requin
TN Pas Cher
TN Air Max
TN Pas Cher
Nike tn 2012
tn foot locker
TN REQUIN
Nike TN
Nike Requin
Chaussure Requin
Air Max Requin TN Pas Cher
Puma Pas Cher
04/23/2012
jam making jars
I agree with your opinion and fully support it, you have been a great contributor and I always come to your blog as I know you always share the best of your information.
jam making jars
04/24/2012
ladies nightdresses
Working on the given topic is really a difficult task but your this tutorial made it easy for me to handle it without any problem. If anyone seeking information then this blog is the best place for him as it has quality content for your required information. Thanks for sharing.
ladies nightdresses
04/25/2012
joshuajonesq
Just stumbled across your blog and was instantly amazed with all the useful information that is on it. . I will keep it in mind, thanks for sharing the information, looking forward for more posts.
seo copywriter
04/27/2012
brievenbussen
I wanted to write a quick note to express my thanks. I’m really impressed by a blog unique and perfectly chosen and organized!
brievenbussen
05/01/2012
JacksonCruz
I have been searching for quite some time for information on this topic and no doubt your website saved my time and I got my desired information. Your post has been very helpful. Thanks.
flowers arlington virginia
05/06/2012
Florist-newjersey
Great post I must say. Simple but yet entertaining and engaging... Keep up the good work!
send flowers new jersey
05/08/2012
jaffa
Most software has software documentation so that the end user can understand the program, what it does, and how to use it. Without clear documentation, software can be hard to use especially if it is very specialized and relatively complex like Photoshop. Thanks.
Regards,
Local SEO Services
05/09/2012
lilian
Coach Outlet
is an American leather goods company famous for its ladies handbags and purses.
Coach Factory
Brand may be creating Coach Bags styles which are absolutely multicolored and fun. Here, we talk about
Coach Outlet Online
comes in different colors and sizes, which means that you can go in for
Coach Outlet Online
one that suits you the most. Made up of
Coach Factory Outlet
various rare materials of
Coach Tote Bags
, Our
Coach Outlet
has a variety of collections of Cheap Coach Shoulder Bags.
Coach Factory Outlet
has polished silver-tone framing on top, which then adds more elegance to its totality.
Coach Outlet
offer purses are cheap and fashion. When you own a coach bag, it automatically creates a mark of status for your unique style while highlighting an unique way in you.
Coach Luggage
are the highest quality bags in elegant classical styles. You can find
Coach Outlet
the special luxury and fashion design from the Cheap Coach Purses. In addition, you can even find some of the Coach bags at
Coach Outlet Online
be named after some famous models. from
http://www.atcoachoutletsonline.com/
Moreover, the exquisite workmanship makes
Coach Scarf
the darling of fashionable ladies. Don't hesitate! Order it.
05/17/2012
johnlevis
I am interested in this topic and would like to find out some more information as my friend need information on this topic. This is good content thank you for sharing it
colorado springs flower delivery
05/17/2012
Add an answer*
Your name
Email
Enter the code shown above:
please wait..
Company:
Microsoft
Location:
Herzliyya
, Israel
Tags:
Arrays
,
c#
,
.Net
,
Sort
Occupations:
Software\System Architecture
,
Software\Web Development
add a question
Now hiring!
Business Analyst, Product Development IT Relationship Managment Team
Vertex Pharmaceuticals
Cambridge, MA
Activity Diagrams- In depth understanding of the various software development lifecycles (e.g. Agile, RUP, and ... - Bachelors Degree- In depth understanding of the various software development lifecycles (e.g. Agile, RUP, and...
---------------------------
IT Sourcing Procurement Analyst Software Service Infrastructure
CVS Caremark
Woonsocket, RI
Strategy, including: Procurement Execution ?Maintain IT procurement process in collaboration with IT stakeholders ... legal risk mitigation strategy are addressed ?Support the development of executive briefings summarizing contract...
---------------------------
IT Project Manager - Information Systems Development
UnitedHealth Group
Southfield, MI
innovative solutions to meet them * Participate in the development of business strategy * Develop and manages ... of healthcare for millions of people worldwide. It's your chance to be a transformational force in the...
---------------------------
Software Development Analyst/ .NET Developer- Health IT
Northrop Grumman
Atlanta, GA
Sharp programming skills, eagerness for challenging development opportunities, and the ability to work with a ... of information security concepts and principles, as it pertains to application/service development and...
---------------------------
(IT Applications Analyst Developer Lead
Halliburton
Houston, TX
Houston, TX DUTIES: Responsible for the development, acquisition, maintenance and support of applications in assigned ... plus 7 years of progressive experience in Systems Development and Application Support, including analysis,...
---------------------------
Mgr Software Development 2-Health IT
Northrop Grumman
Little Rock, AR
and software developers. Works with members of the development team to ensure that all legacy data is ... years of relevant experience - Experience with IT Project Development Lifecycle - Experience converting data for...
---------------------------
IT Specialist (Applications Development)
Parsons
Houston, TX
in software complexity. Makes a recommendation to senior IT management and the end user. Uses charts, diagrams and ... guidance to lower-level IT staff assigned to an application development project. * Develops functional specifications to...
---------------------------
Software Development Engineer (IT Security)
Amazon.com
Seattle, WA
Role Description Amazon.com is looking for expert Software Development Engineers to develop tools supporting the IT ... for you. You will participate in every level of software development from requirements gathering to operational...
Jobs
by
Simply
Hired
View all jobs