boost-random

How do I use Boost Random [closed]

送分小仙女□ 提交于 2019-11-27 04:54:40
问题 I need to generate random number with Boost Random. I tried to follow the general guide. I extracted the files of the library. So if I want to use the classes and objectj of the library how I should do? First I know including the library in the program. Then I have to compile the library and the program.cpp itself? (And both with the same compiler - I'm using g++). I am using a virtual box of ubuntu. It is first time that I am using library so I really don't know. 回答1: the random number for