Skip to content

Commit 573e466

Browse files
committed
Add prod.sh and fix about bug
1 parent b546679 commit 573e466

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

drls/markdown/about.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
## 开发人员
44

5-
- [terasum](https://github.com/terasum)
6-
- [kjzz](https://github.com/kjzz)
5+
- [terasum](https://github.com/terasum) 陈权
6+
- [kjzz](https://github.com/kjzz) 张珂杰
7+
- [xing11](https://github.com/xing11) 宋星
78

89
## 算法说明
910

1011
本程序采用随机区间算法,因为需要结合权重进行随机计算,并且要求给定随机种子的前提下,所有结果能够重现,因此设计采用坐标映射并随机取值的方式实现。
1112

1213
简要概括之,即:
1314

14-
首先将不同权重的学号,按照权重分配到一维坐标系上,例如权重为`1`的第`1`个同学,其随机范围为`[0,1)``,而权重为`1.3`的第2个同学,其随机范围为`[1,2.3)`依次类推。
15+
首先将不同权重的学号,按照权重分配到一维坐标系上,例如权重为`1`的第`1`个同学,其随机范围为`[0,1)`,而权重为`1.3`的第2个同学,其随机范围为`[1,2.3)`依次类推。
1516

1617
首先利用给定的随机种子计算第一个随机数,判断其所在的区间,得到的第一个同学的学号,然后再利用这个同学得到的随机数作为下一轮随机的随机种子,计算第二个随机数,判断其所在的随机区间,得到第二个同学的学号,
1718
依次类推。
@@ -29,4 +30,4 @@
2930
ranNum = res
3031

3132

32-
本项目耗时两天,项目比较仓促,如有疑问,欢迎提[issue](https://github.com/zju-cst/DRLS/issues)
33+
项目仅耗时两天,比较仓促,难免有bug,如果有不足之处,欢迎提出[issue](https://github.com/zju-cst/DRLS/issues).

prod.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
export FLASK_APP=autoapp.py
3+
export FLASK_DEBUG=0
4+
npm run build
5+
flask run --host=0.0.0.0 --port=5000

0 commit comments

Comments
 (0)