Generate Array of Numbers that fit to a Probability Distribution in Ruby?

后端 未结 4 2052
青春惊慌失措
青春惊慌失措 2021-01-03 11:58

Say I have 100 records, and I want to mock out the created_at date so it fits on some curve. Is there a library to do that, or what formula could I use? I thi

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-03 12:44

    I recently came across croupier, a ruby gem that aims to generate numbers according to a variety of statistical distributions.

    I have yet to try it but it sounds quite promising.

提交回复
热议问题