lemmy.amxl.com
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
maris@lemmy.world to Programmer Humor@programming.dev · 21 days ago

Gambling with Lain

lemmy.world

message-square
21
fedilink
193

Gambling with Lain

lemmy.world

maris@lemmy.world to Programmer Humor@programming.dev · 21 days ago
message-square
21
fedilink
  • r00ty@kbin.life
    link
    fedilink
    arrow-up
    2
    ·
    21 days ago

    Oh right. I thought it might work the same as range etc in python, where is does one less than you specify… Coming from, well every other language this really threw me off on my first python excursion.

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days ago

      Any language… except MATLAB. Fuck MATLAB.

      (Their arrays even start at 1, what the fuck?!)

    • shape_warrior_t@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      21 days ago

      You can get the exclusive behaviour with random.randrange. (Relevant Stack Overflow question with a somewhat interesting answer)

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 436 users / day
  • 4.08K users / week
  • 7.08K users / month
  • 19.2K users / 6 months
  • 1 local subscriber
  • 25.5K subscribers
  • 985 Posts
  • 21K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org