- 授权协议: 未知
- 开发语言: C/C++ Python
- 操作系统: Linux
- 软件首页: http://haypo.hachoir.org/trac/wiki/hasard
软件介绍
Hasard 是一个伪随机码生成器 (PRNG) 类库。支持的随机算法包括:Park-Miller, Mersenne Twister, Linux device (/dev/urandom or /dev/random) 等等。
示例代码:
#include <hasard.h>
#include <stdio.h>
int main()
{
struct hasard_t *rnd;
rnd = hasard_new(HASARD_FAST);
printf("Heads or Tails? %s!\n", hasard_bool(rnd)?"Heads":"Tails");
printf("Dice: %i\n", hasard_int(rnd, 1, 6));
printf("Integer in 0..999: %u\n", hasard_ulong(rnd, 0, 999));
printf("Float in [0.0; 1.0]: %.3f\n", hasard_double(rnd, 0.0, 1.0));
hasard_destroy(rnd);
return 0;
}
Hit Refresh
Satya Nadella、Greg Shaw / HarperBusiness / 2017-9-26 / USD 20.37
Hit Refresh is about individual change, about the transformation happening inside of Microsoft and the technology that will soon impact all of our lives—the arrival of the most exciting and disruptive......一起来看看 《Hit Refresh》 这本书的介绍吧!
