Cody

Problem 46568. Beat the RNG - EASY

Solution 3017275

Submitted on 1 Oct 2020 by James
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
m = 1; n = 1; assert(isequal(cheeseRNG(m,n),randi(m,n)))

2   Pass
m = 5; n = 4; assert(isequal(cheeseRNG(m,n),randi(m,n)))

3   Pass
m = 10; n = 15; assert(isequal(cheeseRNG(m,n),randi(m,n)))

4   Pass
m = 1337; n = 42; assert(isequal(cheeseRNG(m,n),randi(m,n)))

Suggested Problems

More from this Author3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!