0

how to generate random decimal number between 0 - 1 , 1E-30

math rand

30th Apr 2017, 6:57 AM
Rahmat Wira Dafitra
Rahmat Wira Dafitra - avatar
16 ответов
+ 9
very hard is right Math.random()*10 above code is just a example
1st May 2017, 3:42 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 7
var x = Math.random(); //This automatically generates number 0 and 1 //This generates an output like 1.3848292 so if you do not want that decimal thingy x = Math.round(); document.write(x); //It will output either 1 or 0 without decimals now
30th Apr 2017, 7:00 AM
Complex
Complex - avatar
+ 6
*
30th Apr 2017, 11:29 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
-_- No I just mark it Why you want to generate big random number like that? Oh wait it's small. very smaller than 0 Btw create random by Math.random()*(1e-30)
30th Apr 2017, 11:31 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
* is every answer and better than 42,right?
30th Apr 2017, 11:38 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
javascript: reply().openPath(); reply("Sympathy from Illuminati?").to(parse("int","C0MPL3X",16)); reply().closePath();
30th Apr 2017, 11:54 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
Give this dude the best answer "*" xD
30th Apr 2017, 11:30 AM
Complex
Complex - avatar
+ 5
xD sorry lol
30th Apr 2017, 11:31 AM
Complex
Complex - avatar
+ 5
42 is life
30th Apr 2017, 11:39 AM
Complex
Complex - avatar
+ 5
:O But I like 666
30th Apr 2017, 11:41 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
fn main() { let mut quit_life = false; println!(":O But I like 666"); loop { let mut quit_life = true; } }
30th Apr 2017, 11:43 AM
Complex
Complex - avatar
+ 5
javascript: playMedia("Sound-Media/Effect/Illuminati.mp3",1,true)
30th Apr 2017, 11:48 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
#include <conversation> #include <skyrim> using namespace fuslodah; int main(){ dragon.breatheSet(pow(999,999)); dragon.kick << "C0MPL3X" << away; return "End or not?"; }
30th Apr 2017, 12:01 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 4
fn main() { ask_for_sympathy(); }
30th Apr 2017, 11:48 AM
Complex
Complex - avatar
+ 4
fn main() { panic!("AAAAAAAAAAAA!!!!eiou"); //Moon base alpha reference }
30th Apr 2017, 11:56 AM
Complex
Complex - avatar
+ 3
use std::time::Duration; use std::thread; fn main() { panic!("Error - C0MPL3X Hibernated"); thread::sleep(Duration::from_secs(9999)); }
30th Apr 2017, 12:02 PM
Complex
Complex - avatar