Vinzent Steinberg
96f43ed79c
Implement sampling from the unit circle
2018-07-27 15:15:54 +01:00
Vinzent Steinberg
c7a76b487e
Implement sampling from the unit sphere
...
This uses a method by Marsaglia (1972), which was found to be the
fastest of the methods given by [MathWorld].
[MathWorld]: http://mathworld.wolfram.com/SpherePointPicking.html
2018-07-27 15:15:54 +01:00
Vinzent Steinberg
ba3d27313f
Document simd_support feature
2018-07-27 13:50:40 +01:00
Vinzent Steinberg
a7f8f348f6
Implement From<RangeInclusive> for Uniform
...
Fixes #556 .
2018-07-27 13:50:40 +01:00
Paul Dicker
149c8b3a96
Depend on packed_simd for simd support
2018-07-27 12:06:14 +01:00
Diggory Hardy
11d6386890
Use real libcore instead of renamed libstd
2018-07-26 11:43:00 +01:00
Diggory Hardy
f8fd39d713
Merge pull request #557 from vks/xorshift-crate
...
Move `XorShiftRng` to its own crate
2018-07-24 13:46:39 +01:00
Vinzent Steinberg
b846c30c0a
Prefer SmallRng in benchmarks
2018-07-24 13:35:37 +02:00
Vinzent Steinberg
d2e7378adc
Simplify attributes
2018-07-24 13:25:08 +02:00
Vinzent Steinberg
cb275bc7e2
Fix serde tests
2018-07-23 13:08:56 +02:00
Diggory Hardy
686ba1469b
Merge pull request #544 from dhardy/doc
...
Doc and policies
2018-07-23 08:21:23 +01:00
Paul Dicker
29a9d1df58
Don't add std feature to rand_isaac and rand_xorshift
2018-07-20 20:07:48 +02:00
Vinzent Steinberg
e7b17ddce3
The rand crate does not depend on serde or bincode anymore
2018-07-20 16:25:56 +02:00
Vinzent Steinberg
ecd18674a4
Enable more CI tests
...
Before, there Serde tests where not running.
2018-07-20 16:17:34 +02:00
Vinzent Steinberg
dac6227596
rand_xorshift: Add README
2018-07-20 15:45:08 +02:00
Vinzent Steinberg
2a658d9fe4
Fix serde tests for rand_isaac and rand_xorshift
2018-07-20 15:44:15 +02:00
Paul Dicker
d162a5ef3c
Merge pull request #562 from pitdicker/wasm-bindgen-0.2.12
...
Update to wasm-bindgen 0.2.12
2018-07-20 07:44:00 +02:00
Paul Dicker
379ee2e6b4
Update to wasm-bindgen 0.2.12
2018-07-20 07:28:16 +02:00
Paul Dicker
01595282cf
Merge pull request #559 from pitdicker/fix_wasm_bindgen
...
Fix wasm-bindgen feature
2018-07-18 20:15:56 +02:00
Paul Dicker
d148bf5eca
Fix wasm-bindgen feature
2018-07-18 19:26:13 +02:00
Vinzent Steinberg
a3ac8d3a6a
Fix compilation warning with serde
2018-07-18 15:27:04 +02:00
Vinzent Steinberg
ecc6e66020
Fix broken links in docs
2018-07-18 15:19:52 +02:00
Vinzent Steinberg
2847c8af0d
Fix deprecation warnings in benchmarks
2018-07-18 10:36:07 +02:00
Vinzent Steinberg
9b069fe2ea
Fix benchmarks
2018-07-18 10:34:23 +02:00
Vinzent Steinberg
2cf9acb44e
Make sure XorShiftRng is deprecated
2018-07-18 10:27:45 +02:00
Vinzent Steinberg
a385938e40
Use keywords consistent with other Rand crates
2018-07-18 10:14:59 +02:00
Vinzent Steinberg
a253a80f76
Move XorShiftRng to its own crate
...
Also recommend `StdRng` rather than the deprecated `IsaacRng`.
2018-07-16 16:13:22 +02:00
Diggory Hardy
d625b18083
Fix deprecation warning in benches/generators.rs
2018-07-16 11:30:55 +01:00
Diggory Hardy
1a98577340
Merge pull request #551 from dhardy/isaac
...
Move ISAAC generators to their own crate
2018-07-16 10:35:41 +01:00
Diggory Hardy
2aabe7839c
Move ISAAC generators to their own crate
2018-07-16 09:18:34 +01:00
Diggory Hardy
b9cc58187b
Merge pull request #548 from sicking/mods
...
Hide modules that don't need to be publicly exported
2018-07-12 18:14:03 +01:00
Jonas Sicking
dd37c58c1c
Hide modules whose distributions we're exposing directly throguh rand::distributions. Also move a couple of distribution helper functions into utils.rs.
2018-07-12 08:22:29 -07:00
Diggory Hardy
515cf18644
Merge pull request #477 from sicking/limit_inexact_float
...
Make Uniform<f32/f64> and gen_range<f32/f64> honor limits strictly. Resolves #476
2018-07-12 16:14:54 +01:00
Jonas Sicking
b6d7d4cfde
Merge CompareAll and CastFromInt
2018-07-12 08:00:12 -07:00
Jonas Sicking
6d2b7e5c8f
Make Uniform and gen_range honor limits strictly for floating point types. Resolves #476
2018-07-12 07:58:27 -07:00
Jonas Sicking
33e2e89837
Add benchmarks for gen_range<f32/f64>
2018-07-12 07:22:05 -07:00
Diggory Hardy
c0322041bf
Merge pull request #547 from sicking/weighterr
...
Add WeightedError
2018-07-12 14:21:21 +01:00
Jonas Sicking
3134986d4e
Add WeightedError
2018-07-12 05:41:08 -07:00
Diggory Hardy
e67423aebe
Address review comments
2018-07-12 13:03:21 +01:00
Diggory Hardy
cca762cf75
doc: add policy on stability and breaking changes
2018-07-12 12:52:02 +01:00
Diggory Hardy
36826334f7
doc: add policy on project scope
2018-07-12 12:52:02 +01:00
Diggory Hardy
e5134e815a
doc: add policy on new PRNG algorithms
2018-07-12 12:52:02 +01:00
Diggory Hardy
3f191be98a
Doc: add new doc/ sub-directory with index
2018-07-12 12:52:02 +01:00
Diggory Hardy
40d8c3972d
Merge branch '0.5'
2018-07-12 12:51:37 +01:00
Diggory Hardy
7a23f3e054
Merge pull request #546 from dhardy/0.5
...
Prepare 0.5.4 release
2018-07-12 10:58:21 +01:00
Diggory Hardy
023901b4a5
Update version numbers to 0.5.4 and add changelog note
2018-07-11 16:27:58 +01:00
Diggory Hardy
13712b6e46
Fix build errors on nightly (alloc crate changes)
2018-07-11 16:27:58 +01:00
Diggory Hardy
da2f7fa001
Merge pull request #541 from alexcrichton/wbg
...
Add support for wasm-bindgen
2018-07-11 16:03:19 +01:00
Alex Crichton
140385528f
Add support for wasm-bindgen
...
This commit adds support to implement the `rand` crate on the
wasm32-unknown-unknown target with the `wasm-bindgen`-based runtime. This
supports being run both in node.js as well as browsers by delegating
appropriately.
Closes #478
2018-07-11 07:07:38 -07:00
Diggory Hardy
74c68bfc59
Merge pull request #545 from dhardy/nightly
...
Fix build errors on nightly (alloc crate changes)
2018-07-11 10:55:13 +01:00