Question: Write a C# program to generate Lists of random 5 elements each containing only binary numbers like 1 or 0 only such that there is

Write a C# program to generate Lists of random 5 elements each containing only binary numbers like 1 or 0 only such that there is only one 1 in the list in any random position and the rest four elements are zeroes. . For eg: (10000) or (01000) or (00100) or (00010) or (00001).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!