Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.misc > #2091

Re: [srand()/rand()] Ich brauche mehr Chaos.

From Patrick Rudin <taxi_bs@gmx.ch>
Newsgroups de.comp.lang.misc
Subject Re: [srand()/rand()] Ich brauche mehr Chaos.
Date 2025-03-16 14:56 +0100
Message-ID <m3o3keF7dt8U2@mid.individual.net> (permalink)
References <AABnzWOfHfoAAA8s.A3.flnews@ferrat.uplawski.eu> <vinial-heq.ln1@tempo.martinkl.dialup.fu-berlin.de>

Show all headers | View raw


Martin Klaiber wrote:
> Muss es unbedingt ein Ruby-Programm sein?

Echte Kerle machen das doch mit R

library(tidyverse)

sigs <- tibble(text=c("Guten Morgen","Guten Abend","Linux ist 
cool","Rettet die Welt","Tötet Windows","Huldigt Linus","Das ist keine 
Normalverteilung","R ist cooler als Ruby"))


sigs %>%
slice_sample(n=10000, replace=T) %>%
count(text) %>%
mutate(anteil=n*100/sum(n))


# A tibble: 8 × 3
   text                               n anteil
   <chr>                          <int>  <dbl>
1 Das ist keine Normalverteilung  1286   12.9
2 Guten Abend                     1232   12.3
3 Guten Morgen                    1275   12.8
4 Huldigt Linus                   1250   12.5
5 Linux ist cool                  1212   12.1
6 R ist cooler als Ruby           1232   12.3
7 Rettet die Welt                 1208   12.1
8 Tötet Windows                   1305   13.0

Man spürt die Tendenz...


SCNR

Patrick

Back to de.comp.lang.misc | Previous | NextPrevious in thread | Find similar


Thread

[srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-09 10:47 +0100
  Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-09 18:39 +0100
    Re: [srand()/rand()] Ich brauche mehr Chaos. Tim Landscheidt <tim@tim-landscheidt.de> - 2025-03-09 19:11 +0000
      Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-10 07:33 +0100
  Re: [srand()/rand()] Ich brauche mehr Chaos. Sieghard Schicktanz <Sieghard.Schicktanz@SchS.de> - 2025-03-09 20:10 +0100
    Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-10 07:30 +0100
      Re: [srand()/rand()] Ich brauche mehr Chaos. Thomas Noll <-_tn_-@web.de> - 2025-03-10 16:02 +0000
      Re: [srand()/rand()] Ich brauche mehr Chaos. Stefan Reuther <stefan.news@arcor.de> - 2025-03-10 18:13 +0100
        Re: [srand()/rand()] Ich brauche mehr Chaos. Tim Landscheidt <tim@tim-landscheidt.de> - 2025-03-10 17:59 +0000
          Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-11 07:52 +0100
            Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-12 07:46 +0100
              Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-13 07:29 +0100
              Ω  Was: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-13 07:30 +0100
  Re: [srand()/rand()] Ich brauche mehr Chaos. Martin Klaiber <usenet.martinkl@gmx.de> - 2025-03-16 12:00 +0100
    Re: [srand()/rand()] Ich brauche mehr Chaos. Michael Uplawski <michael.uplawski@uplawski.eu> - 2025-03-16 12:38 +0100
    Re: [srand()/rand()] Ich brauche mehr Chaos. Patrick Rudin <taxi_bs@gmx.ch> - 2025-03-16 14:56 +0100

csiph-web