homework-jianmu/tests/army/query/function/ans/rand.csv

5.0 KiB

1taos> select RAND(1245)
2rand(1245) |
3============================
40.663936012733698 |
5taos> select RAND(id) from ts_4893.d0 limit 10
6rand(id) |
7============================
80.840187717154710 |
90.840187717154710 |
100.700976369297587 |
110.561380175203728 |
120.916457875592847 |
130.274745596235034 |
140.135438768721856 |
150.486904139391568 |
160.352760728612896 |
170.206965447965528 |
18taos> select RAND(id) from ts_4893.d0 order by id desc limit 10
19rand(id) |
20============================
210.419929514834624 |
220.419929514834624 |
230.419929514834624 |
240.419929514834624 |
250.419929514834624 |
260.419929514834624 |
270.419929514834624 |
280.419929514834624 |
290.419929514834624 |
300.419929514834624 |
31taos> select rand(0)
32rand(0) |
33============================
340.840187717154710 |
35taos> select rand(1)
36rand(1) |
37============================
380.840187717154710 |
39taos> select rand(-1)
40rand(-1) |
41============================
420.118708995691831 |
43taos> select rand(12345678901234567890)
44rand(12345678901234567890) |
45=============================
462.008294813338805e-01 |
47taos> select rand(-12345678901234567890)
48rand(-12345678901234567890) |
49==============================
508.401877171547095e-01 |
51rand(12345) | rand(12345) |
52========================================================
530.178395304446293 | 0.178395304446293 |
54taos> select rand(9999999999) where rand(9999999999) >= 0 and rand(9999999999) < 1
55rand(9999999999) |
56============================
570.321409397442550 |
58taos> select rand(id) from ts_4893.meters limit 100
59rand(id) |
60============================
610.840187717154710 |
620.840187717154710 |
630.700976369297587 |
640.561380175203728 |
650.916457875592847 |
660.274745596235034 |
670.135438768721856 |
680.486904139391568 |
690.352760728612896 |
700.206965447965528 |
710.565810732341283 |
720.926345318521534 |
730.785600282617658 |
740.632643183056565 |
750.999498499557142 |
760.354973177125199 |
770.215437470104283 |
780.571794000254848 |
790.929072778173291 |
800.290233385418650 |
810.148812267532950 |
820.505899571117898 |
830.865026922367991 |
840.727581746283724 |
850.087714229285584 |
860.939356191986872 |
870.795545781867367 |
880.659832971943465 |
890.517155105023251 |
900.875989373715589 |
910.229967075041480 |
920.592119012303706 |
930.449675684072858 |
940.307948935454688 |
950.168970021497910 |
960.524489704763745 |
970.381259786142623 |
980.239412393066758 |
990.598226357529977 |
1000.957148446215851 |
1010.819422913165494 |
1020.670246056127477 |
1030.033469948001890 |
1040.392149003405193 |
1050.749737140606035 |
1060.608923980318440 |
1070.469695958061933 |
1080.825680229266025 |
1090.683865774275673 |
1100.041811583583155 |
1110.894321223206036 |
1120.760580372885140 |
1130.615916447069457 |
1140.977703406930763 |
1150.329537633959920 |
1160.193522962831670 |
1170.052021294390793 |
1180.911150676622591 |
1190.766549994129012 |
1200.126697651635249 |
1210.985316422761100 |
1220.843173408342140 |
1230.699550600116863 |
1240.557263156192965 |
1250.419794161068180 |
1260.278590486048996 |
1270.133239280028846 |
1280.488706417143674 |
1290.854142372894167 |
1300.710721029765308 |
1310.570226699379378 |
1320.424855420563768 |
1330.283543675338637 |
1340.137892492179709 |
1350.998458440880505 |
1360.356983164025928 |
1370.218767986269094 |
1380.076468908263589 |
1390.431104593179703 |
1400.293163777931204 |
1410.650123746902740 |
1420.510736836358317 |
1430.864335399057872 |
1440.725284450559544 |
1450.085677149279824 |
1460.942077809917777 |
1470.798407114482674 |
1480.163865051774245 |
1490.017995767769402 |
1500.879516513030751 |
1510.736922031145972 |
1520.589669372695344 |
1530.954449085497507 |
1540.811225361568493 |
1550.172090128609953 |
1560.525153056031630 |
1570.386470556904781 |
1580.744990266275122 |
1590.100015020510189 |
1600.460091779222755 |