Skip to content

Instantly share code, notes, and snippets.

@pkofod
Created August 10, 2020 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkofod/a1daf55be5319e6ffd43c20bbe2ac01e to your computer and use it in GitHub Desktop.
Save pkofod/a1daf55be5319e6ffd43c20bbe2ac01e to your computer and use it in GitHub Desktop.
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.4.2 (2020-05-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Random
julia> Random.seed!(0); # Fix random seed generator for reproducibility
julia> randn(20,1)
20×1 Array{Float64,2}:
0.6791074260357777
0.8284134829000359
-0.3530074003005963
-0.13485387193052173
0.5866170746331097
0.29733585084941616
0.06494754854834232
-0.10901738508171745
-0.514210390833322
1.5743302021369892
-0.6889071278256981
-0.7628038164104581
0.39748240921816347
0.8116296225068749
-0.34635460427879816
-0.18757268194516005
-1.6072563241277753
-2.48079273065994
2.2762328327845243
0.21969346754254096
julia> randn(20,1)
20×1 Array{Float64,2}:
-0.11713753073293519
-0.6012535941853836
1.1422764389413194
-0.08861631820047296
0.2794662520898984
0.1114216780915173
-0.3578835146703243
0.4737143221493313
0.30023392902396967
-0.7626770596674239
1.4230485806643178
0.40838681696170764
0.5886213806024645
-0.2962776971090756
0.6911107341102476
0.5068736340422747
-0.05692987609895758
-1.7710236453721393
1.5906225203074087
1.3970614473997425
julia> Random.seed!(0); # Fix random seed generator for reproducibility
julia> randn(21,1)
21×1 Array{Float64,2}:
0.6791074260357777
0.8284134829000359
-0.3530074003005963
-0.13485387193052173
0.5866170746331097
0.29733585084941616
0.06494754854834232
-0.10901738508171745
-0.514210390833322
1.5743302021369892
-0.6889071278256981
-0.7628038164104581
0.39748240921816347
0.8116296225068749
-0.34635460427879816
-0.18757268194516005
-1.6072563241277753
-2.48079273065994
2.2762328327845243
0.21969346754254096
-0.11713753073293519
julia> Random.seed!(0); # Fix random seed generator for reproducibility
julia> randn(40,1)
40×1 Array{Float64,2}:
0.6791074260357777
0.8284134829000359
-0.3530074003005963
-0.13485387193052173
0.5866170746331097
0.29733585084941616
0.06494754854834232
-0.10901738508171745
-0.514210390833322
1.5743302021369892
-0.6889071278256981
-0.7628038164104581
0.39748240921816347
0.8116296225068749
-0.34635460427879816
-0.18757268194516005
-1.6072563241277753
-2.48079273065994
2.2762328327845243
0.21969346754254096
-0.11713753073293519
-0.6012535941853836
1.1422764389413194
-0.08861631820047296
0.2794662520898984
0.1114216780915173
-0.3578835146703243
0.4737143221493313
0.30023392902396967
-0.7626770596674239
1.4230485806643178
0.40838681696170764
0.5886213806024645
-0.2962776971090756
0.6911107341102476
0.5068736340422747
-0.05692987609895758
-1.7710236453721393
1.5906225203074087
1.3970614473997425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment