Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
rand in Rust
PifyZ
Jul 17th, 2014
805
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn rand(min: int, max: int) -> int {
((random::<f32>() * ((max - min + 1) as f32)).floor() + (min as f32)) as int
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
SwapEngine Bug [build 1.3]
4 min ago | 0.39 KB
Untitled
11 min ago | 1.01 KB
December smells like money
CSS | 17 min ago | 0.39 KB
✅ Changelly.com Exploit
31 min ago | 0.39 KB
Trading method
CSS | 44 min ago | 0.39 KB
Google Docs - Exploit
57 min ago | 0.39 KB
coding and writing poetry
7 hours ago | 1.27 KB
UserScript - Hide Umingle video overlays
JavaScript | 9 hours ago | 1.97 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!