Define rand-max as a constant
Define rand-max as 2^31 - 1

The function rand-int takes Java ints as its argument, so rand-max must
not be larger then the max value of a Java int (2^31 - 1) in order for
rand-int to be usable with rand-max.
Store unique ID for each note in the database

Each note will have a unique identifier (currently assigned as a random
integer) which can be used as a reference for allowing notes to be
selected, deleted, and updated by the user.