fork download
  1. import random
  2. randomlist = [random.choice((0, 1)) and random.uniform(0,1) for i in range(0,100)]
  3. print(randomlist)
  4.  
Success #stdin #stdout 0.03s 11732KB
stdin
Standard input is empty
stdout
[0.40410775051018244, 0, 0, 0, 0, 0.7151331897240231, 0.27361018726475594, 0, 0, 0.31761380159491914, 0, 0, 0, 0, 0, 0, 0.257533781231827, 0.24722601248032272, 0, 0.015449284692709342, 0, 0, 0.28562217500500564, 0, 0.04693600479527371, 0.6082648856211318, 0, 0.48790342920570084, 0, 0, 0, 0.970953950141333, 0.4121937616071276, 0, 0, 0.005291710305995512, 0, 0, 0, 0.16594619290924661, 0, 0, 0.2548995034893885, 0, 0, 0.5931339593935897, 0, 0, 0.18448482342103167, 0.27130453930878284, 0, 0.7492178732810603, 0, 0, 0, 0.8120614350693713, 0, 0, 0, 0.334446778298815, 0, 0, 0.7572794495741904, 0.5203931751371624, 0, 0, 0, 0, 0, 0.12536110500813946, 0, 0, 0.0004120745101399148, 0.10222387851420545, 0, 0.40912502739943546, 0, 0.924337865222715, 0, 0.23268967509581584, 0.4680227432672054, 0.09835063935004151, 0, 0, 0, 0, 0.32909288957840077, 0.3774368997874351, 0, 0, 0, 0.12959391599657455, 0.9735283836531674, 0.8891436305939926, 0, 0.22263331197083613, 0.7795380257141139, 0.6997170311221899, 0.1349844472730568, 0.8782461194891313]