I am trying to port some code from Python to Julia. I was using a function 
numpy.random.choice, which accept a parameter to define probability of each 
individual entry. I wonder if there is a corresponding Julia function.

Another more basic question is how do we do number formatting like %0.2f ?

Thanks,

Wai Yip

Reply via email to