title: Generate Poisson Arrival in Java
body: <p>I would like to create a function in Java that generates Poisson arrivals given the mean arrival rate (lambda) and the mean service rate (mu).</p>
  
  <p>In my example I have: 2,2 requests/day, in other words 2,2 arrivals/day and a mean service time of 108 hours. Considering that my program starts at t=0 minutes, I would like to create a function that returns arrivals[], which will contain, t1, t2, and a possible t3. T1,t2 and t3 are the instants (in minutes) during the day where this arrivals occur. I have the following restrictions:</p>
  
  <p><code>t1 &lt; t2 &lt; t3 &lt; 1440 minutes (24 hours*60 minutes/hour)</code></p>
  
  <p><code>t2-t1 &gt; 108 minutes</code></p>
  
  <p><code>t3-t2 &gt; 108 minutes</code></p>
  
  <p><code>t3+ 108 minutes &lt; 1440 minutes</code></p>
  
  <p>Can someone please help me?</p>
  
  <p>Thank you,</p>
  
  <p>Ana</p>