Skip to content

Random sleep after each command #14

Description

@zeroXten

Add this to .bashrc etc

export PROMPT_COMMAND='sleep $(($RANDOM % ($(($RANDOM % 9))+1)))'

This will sleep for up to 10 seconds, weighted to lower values:

$ for i in {1..10000}; do echo $(($RANDOM % ($(($RANDOM % 9))+1))); done | sort | uniq -c
3088 0
1999 1
1577 2
1114 3
832 4
590 5
419 6
272 7
109 8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions