I need help on two assignments that are due:

1. Initializing the elements of an array a1 and size n randomly, so that its elements have values between [1-45].

2. Initializing the elements of an array a2 and size n randomly, so that each element is between 0 and 50 and is a multiple of 5.