Chris Loves .net
  • Home
  • Portfolio
  • Profile
  • Contact

Random Number Function

This is just a simple Javascript random number function. It utilises the built in functions Math.random() and Math.floor()

The parameters "min" and "max" are the inclusive range to return.

function randNum(min, max) {
    return Math.floor((Math.random() * (max - min + 1)) + min);
}

Featured Blogs

Class Finalizer

Use class finalizers to correctly clean up your object instances.

Newton UX Scale

The Newton UX Scale, not to be confused with Newton Scale devised by Isaac Newton in 1701

Choosing the right .net technology for desktop applications

Presented with the question: which is the right choice of .net technology for desktop development. I try to discern an answer.

WCF - Security Negotiation Exception

One way to overcome a WCF Security Negotiation Exception

What are REST and SOAP

REST and SOAP are used when describing web services, what are the differences?

Featured Blogs

Class Finalizer

Newton UX Scale

Choosing the right .net technology for desktop applications

WCF - Security Negotiation Exception

What are REST and SOAP

Social Links

  • LinkedIn
  • GitHub

Legal Links

  • Terms and Conditions
  • Copyright Notice
  • Privacy Policy