isRandom

private static Random rand = new Random();

public static bool isRandom(this int source) {
  return source == rand.Next();
}
Example:
var num = 10;
if( num.isRandom() ) {
  Console.WriteLine("num is random");
}
else {
  Console.WriteLine("num is not random");
}

Description

Checks whether the number is random.

Details

Double click on the code to select all.

 

;