codesnippets:randomvalues

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
codesnippets:randomvalues [2021/04/30 20:38] f2b216codesnippets: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:
 </code> </code>
     * executes, with output like:<code>     * executes, with output like:<code>
-(MyData 1660924500 2147483396 0.8006679893360256 0.8162396936991755 (MyData2 0.6866312537716532 0.8180534811198655),MyData 1660964514 2147402014 0.8440472352553701 0.8162396936991755 (MyData2 0.6866312537716532 0.8180534811198655),MyData2 0.45086862247497494 0.36537830686886874,ScaleA 1.7497456354343925) +(MyData 1547211741 2147483396 0.2483644234579585 0.9836217202419262 (MyData2 0.4909809627910673 0.8713231916723704),MyData 1547251755 2147402014 0.2483644234579585 0.9836217202419262 (MyData2 0.4909809627910673 0.8713231916723704),MyData2 0.6269406052566662 0.2513090689294605,ScaleA 0.11255263338660004)
-(MyData 1660924500 2147483396 0.8006679893360256 0.8162396936991755 (MyData2 0.6866312537716532 0.8180534811198655),MyData 1660964514 2147402014 0.8440472352553701 0.8162396936991755 (MyData2 0.6866312537716532 0.8180534811198655),MyData2 0.45086862247497494 0.36537830686886874,ScaleA 1.7497456354343925)+
 </code> </code>
 +
 +
 +===== ✎ =====
 +~~DISCUSSION~~
codesnippets/randomvalues.1619807911.txt.gz · Last modified: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki