#random #generates-random #generate #3d-points #rust

random-3d-points

Generates random 3D points within a specified range, compiled to WebAssembly

1 unstable release

0.1.0 Jan 10, 2025

#337 in WebAssembly

Download history 121/week @ 2025-01-08

121 downloads per month

MIT license

4KB

Random 3D Points Generator in WebAssembly

This project generates random 3D points within a specified range ([-2.0, 2.0] for each coordinate). It is written in Rust and compiled to WebAssembly for high performance and ease of use in web environments.

  • Generates 1,000,000 random 3D points on the fly.
  • Exposed as a WebAssembly module for use in JavaScript and web applications.
  • Uses the random-fast-rng crate for fast random number generation.

Features:

  • WebAssembly-backed for optimal performance.
  • Seamless integration with JavaScript.
  • Works across modern browsers.

How to Use:

  1. Install the WebAssembly module by downloading the files.
  2. Import the generated WebAssembly module into your JavaScript code.
  3. Call the generate_points() function to retrieve random 3D points.

Dependencies

~0.7–1.4MB
~28K SLoC