Added random number generation
Added lock buttons
Added pattern resources and the form now displays all of them