Sandeep Prasad

Sandeep Prasad

  • 2k
  • 11
  • 822

Return a random value

Dec 25 2017 3:23 AM

Build a piece of code in c# language : (method/function) Which returns a random value between 1 & 6 except those numbers which are passed at the time of calling.

Just as . . .

//Definition

Private int rdm (int [] ) {

return int }

//calling

rdm(new int {3,5} )

//output 4 Or 2 Or 6 Or 1


Brought to you by:

Answers (2)