randomNumbers function

Uint32List randomNumbers(
  1. int length, {
  2. RNG generator = RNG.secure,
})

Generate a list of random 32-bit numbers of size length

Implementation

@pragma('vm:prefer-inline')
Uint32List randomNumbers(
  int length, {
  RNG generator = RNG.secure,
}) =>
    HashlibRandom(generator).nextNumbers(length);