At the start of each day, the players will have to roll 1d20 to see if an event happens. If they roll over a 10, they pass through the day safely. If they roll under, they will roll a d100 to trigger a random event.
The amount of food and water aboard the vessel corresponds to 1d100 * # of players. This is in addition to any food the players bring on. The idea is that this will account for X many days of rations for the whole crew. For example, if the population onboard the ship was 10 people including the players, and they rolled a 47, they would have 470 days worth of rations split between 10 people, which would equal 47 possible days at sea barring any extenuating circumstances.