<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://dvillers.umons.ac.be/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://dvillers.umons.ac.be/wiki/feed.php">
        <title>Didier Villers, UMONS - wiki</title>
        <description></description>
        <link>https://dvillers.umons.ac.be/wiki/</link>
        <image rdf:resource="https://dvillers.umons.ac.be/wiki/_media/favicon.ico" />
       <dc:date>2026-05-03T11:40:07+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://dvillers.umons.ac.be/wiki/teaching:exos:simulations_random_walks_codes?rev=1541416187&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://dvillers.umons.ac.be/wiki/_media/favicon.ico">
        <title>Didier Villers, UMONS - wiki</title>
        <link>https://dvillers.umons.ac.be/wiki/</link>
        <url>https://dvillers.umons.ac.be/wiki/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://dvillers.umons.ac.be/wiki/teaching:exos:simulations_random_walks_codes?rev=1541416187&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-11-05T12:09:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>teaching:exos:simulations_random_walks_codes</title>
        <link>https://dvillers.umons.ac.be/wiki/teaching:exos:simulations_random_walks_codes?rev=1541416187&amp;do=diff</link>
        <description>Simulations numériques de marches aléatoires : programmes en Python


Génération de nombres aléatoires


#!/usr/bin/python
# -*- coding: utf-8 -*-
&quot;&quot;&quot;
cf. documentation cf http://docs.python.org/library/random.html 
random number generation - génération de nombres aléatoires
functions of interest : choice, randint, seed
&quot;&quot;&quot;

from random import * 

facepiece = [&#039;pile&#039;,&#039;face&#039;]
valeurpiece = [0.01,0.02,0.05,0.1,0.2,0.5,1.,2.]

for i in range(1):
    # choice : random choice of an element from a lis…</description>
    </item>
</rdf:RDF>
