Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- M=100000
- N=10000
- echo $M
- shuf <(
- seq 0 $(( M - 1 )) | awk -v R=10 -v M=$M '
- BEGIN {
- c = 2 * atan2(0, -1) / M
- }
- {
- print R * cos(c * $0), R * sin(c * $0)
- }
- '
- )
- echo $N
- shuf <(
- seq 0 $(( N - 1 )) | awk -v R=10000 -v N=$N '
- BEGIN {
- c = 2 * atan2(0, -1) / N
- }
- {
- print R * cos(c * $0), R * sin(c * $0)
- }
- '
- )
Advertisement
Add Comment
Please, Sign In to add comment