ios - Making four separate variables -


i trying make 4 separate variables different , b different, , c different, b , c different , on forth. here 4 variables.

var = int(arc4random_uniform(5)) var b = int(arc4random_uniform(5)) var c = int(arc4random_uniform(5)) var d = int(arc4random_uniform(5)) 

let = int(arc4random_uniform(5)) var b = int(arc4random_uniform(5)) while b == {     b = int(arc4random_uniform(5)) } var c = int(arc4random_uniform(5)) while c == || c == b {     c = int(arc4random_uniform(5)) } var d = int(arc4random_uniform(5)) while d == c || d == b || d == {     d = int(arc4random_uniform(5)) } println(a)  // 2 println(b)  // 0 println(c)  // 4 println(d)  // 3 

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -