Random integers
Generate random whole numbers in a range
VCL
Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):
Compute@Edge
Use this solution in your Compute@Edge service:
- Rust
let num = rand::thread_rng().gen_range(0, 100);
Ok(Response::from_body(num.to_string()))