codesnippets:randomvalues
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| codesnippets:randomvalues [2021/04/30 20:38] – f2b216 | codesnippets:randomvalues [2025/10/08 00:48] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Random values ====== | ====== Random values ====== | ||
| - | ~~DISCUSSION~~ | ||
| * example | * example | ||
| Line 11: | Line 10: | ||
| main = do | main = do | ||
| prng0 <- Rnd.newStdGen | prng0 <- Rnd.newStdGen | ||
| - | print $ processMyData ((Rnd.random prng0) :: MyData) | ||
| print $ processMyData ((Rnd.random prng0) :: MyData) | print $ processMyData ((Rnd.random prng0) :: MyData) | ||
| Line 255: | Line 253: | ||
| </ | </ | ||
| * executes, with output like:< | * executes, with output like:< | ||
| - | (MyData | + | (MyData |
| - | (MyData 1660924500 2147483396 | + | |
| </ | </ | ||
| + | |||
| + | |||
| + | ===== ✎ ===== | ||
| + | ~~DISCUSSION~~ | ||
codesnippets/randomvalues.1619807911.txt.gz · Last modified: (external edit)
