File: uniformRV.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 161 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
dim nums(301)

for i = 1 to 1000000
x = int(rand * 300)
nums[x] = nums[x] + 1
next i

fastgraphics
clg
for x = 0 to 300
plot x, 60 + nums[x] / 100
next x
refresh