Twise Random

A site about computer science .
Skip to content
  • apple
  • android
  • c
  • cpp
  • data structure and algorithms
  • macos
  • python
  • tutorials

Category: swift

Characters in swift a tutorial

Posted on August 2, 2021August 3, 2021 by mohamad wael

What is a character ?

Nowadays, what is accepted, is that a character has a code point, an encoding, and that it belongs, to a character set.

A character-set, can specify both the code points, and the encoding, or it … Read More

swift

Optionals in swift a tutorial

Posted on July 31, 2021August 3, 2021 by mohamad wael

 

In some languages other than swift, a variable or a constant, can or cannot have a value. So a variable or a constant, can be null, if no value was assigned to them, or if set to null.

What … Read More

swift optional, swift, what is an optional

How to generate random numbers in swift ?

Posted on September 19, 2019August 1, 2021 by mohamad wael

How to generate random number ins swift

We can generate random numbers in swift by one of these three methods :

  1. using the arc4random library
  2. using the default system random number generator SystemRandomNumberGenerator
  3. by using GamePlayKit classes that implement the
… Read More
swift