Git Product home page Git Product logo

random's Introduction

  • ๐Ÿ‡ฆ๐Ÿ‡บ I am interested in Maths, Algorithm Design, Data Analysis, Encryption, ...

  • ๐Ÿ“– Here is my book: ๐Ÿ”– Bash for Fun ๐Ÿ”–. To support me, just buy the e-book online and enjoy, thank you! It explains Bash and also relates to my Bash+Rust compressing/encrypting/archiving app here: TokenCrypt

  • โœ๏ธ I am currently writing a new book Science with Rust

  • ๐Ÿ’ž๏ธ My repositories here are written mostly in Rust and are directly usable in your code via crates.io:

  • ๐Ÿ”— rstats, indxvec, medians, times, ran, sets

  • ๐ŸŽฌ My presentation at Scientific Computing in Rust, 18th July 2024

  • ๐Ÿ“ซ How to reach me: [email protected]

random's People

Contributors

liborty avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

random's Issues

error[E0658]: use of unstable library feature 'local_key_cell_methods'

Hi there,

It seems that one of my dependencies uses your library. Since just a few days ago, the build fails in CI on several WIP branches (nyx-space/nyx#246, nyx-space/nyx#244) on the latest stable rust.

error[E0658]: use of unstable library feature 'local_key_cell_methods'
  --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ran-1.1.4/src/generators.rs:25:33
   |
25 | pub fn get_seed() -> u64 { SEED.get() }
   |                                 ^^^
   |
   = note: see issue #92122 <https://github.com/rust-lang/rust/issues/92122> for more information

error[E0658]: use of unstable library feature 'local_key_cell_methods'
  --> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ran-1.1.4/src/generators.rs:34:10
   |
34 |     SEED.set(seed); 
   |          ^^^
   |
   = note: see issue #92122 <https://github.com/rust-lang/rust/issues/92122> for more information

Any idea how I could fix that issue?

Thanks

Generating sequences with given values

Thanks for this library.

I couldn't find an example to generate vectors or matrices containing only 0s and 1s. I see there are lot of examples about how to generate numbers in ranges but no way of generating sequences with given values.

Maybe a method to like ranvv_given(&self, d:usize, values: Vec<T>) where d is the length of the sequence and values can accept a vector so to generate something like:

ranvv_given(3, vec![0., 1.]);
> [0., 1., 1.]

or also

ranvv_given(5, vec![0., 0.5, 1.]);
> [0., 1., 0.5, 1., 1.]

That would be helpful for my tests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.