createRandom static method

Random createRandom({
  1. bool isSecure = false,
  2. int? seed,
})

create random

Implementation

static Random createRandom({bool isSecure = false,int? seed}){
  return isSecure? Random.secure() : Random(seed);
}